249. Responsive layout of bootstrap (grid system)

Responsive layout# I. purpose: the same set of pages can be compatible with devices of different resolutions. 2. Implementation mode: using grid system to achieve: A row is divided into 12 squares. You can set an element to occupy several squares according to the size of the screen. III. steps: Step ...

Posted by antonello on Tue, 25 Feb 2020 20:06:38 -0800

Animation script encapsulated with jquery (no animation, css3 animation, js animation)

Self packaged showhide.js Including no animation, css3 animation, js animation Including: fade (fade in and fade out) slideUpDown (slide up and down), slideLeftRight (slide left and right), fadeSlideUpDown (fade in and fade out + slide up and down), fadesleleftright (fade in and fade out + slide left and right) (function($){ var transition ...

Posted by BDKR on Tue, 25 Feb 2020 07:37:31 -0800

The implementation of web page delayed loading animation-WOW.js

The content of the web page is not displayed at the beginning, and there is still a time difference with the mouse pull-down delay At first, I thought it was difficult, complicated and tall, until I found that wow.js   The first is the demo address: https://www.delac.io/wow/ Well, dogs are really cute   Next, Download: http://www.downyi.com/dow ...

Posted by alcapone on Mon, 24 Feb 2020 23:40:19 -0800

Front end security against CSRF attack

The front end is not only to render the data on the page, but also to do a lot of things For example, we should do a good job in safety Suppose, a management system, when you log in the system, you do not do security work Other people can add, delete, modify and check your data through your interface. T ...

Posted by youdontmeanmuch on Mon, 24 Feb 2020 02:48:14 -0800

Header layout, search verification and AJAX automatic search prompt are encapsulated into components to improve code reusability

index.html header structure and style Design sketch   Static style Part of index.html <!-- head --> <div class="header"> <div class="container"> <!-- h1 Tag is for search engine optimization, indicating importance But don't show too much in the page --> <h1 class=" ...

Posted by laurajohn89 on Sat, 22 Feb 2020 23:51:28 -0800

Encapsulation, implementation and optimization of display layer (no animation + css3 animation + js animation)

showhide.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>showhide</title> <link rel="stylesheet" href="../css/base.css"> <style> body{ width:400px; margin:0 auto; } button{ width:50%; ...

Posted by chalexan on Fri, 21 Feb 2020 22:43:51 -0800

AJAX advantages, cross domain solutions, JSON data formats and JSON objects in browsers

ajax does not reload the entire web page, update part of the web page technology Note: ajax only works when it is running on the server. I usually use phpstudy locally Advantage: 1. Optimize the user experience 2. It undertakes part of the work of the server and reduces the pressure of the server 3. Optimized the transmission of server-side and ...

Posted by damo87 on Tue, 18 Feb 2020 06:15:57 -0800

jquery events and event agents

1. Common events click() mouse click blur() element lost focus focus() element gets focus mouseover() mouse in (triggered by entering child elements) mouseout() mouse away (leaving child elements also triggered) ready() DOM loading completed Example code: <script> $(function(){ var ...

Posted by jen56456 on Sun, 16 Feb 2020 20:10:03 -0800

The key function selector of jQuery

Selector is the core of jquery The object returned by jquery selector is jquery object, which does not return undefined or null, so it is unnecessary to judge   Basic selector: ID selector $("" Id ") element selector (label selector) $("label") such as $("div") Get the specific label, and use the way of array ...

Posted by jesse26 on Sun, 16 Feb 2020 02:54:35 -0800

Analysis of bootstrap switch control

Basic example: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name=viewport content="width=device-width, initial-scale=1"> <title>bootstrap Example of switch</title> <link href="bt/css/bootstrap.min.css" rel="stylesheet" /> <link href ...

Posted by JChilds on Sat, 15 Feb 2020 07:17:12 -0800