CSS Section
body{font:400 16px/1.5 "Helvetica Neue", helvetica,stheiti,arial,sans-serif;-ms-text-size-adjust:100%;- webkit-text-size-adjust:100%;} Don't explain
A,button,input,img,p,div{-webkit-tap-highlight-color:rgba (255,255,255,0);} On an Android phone, the user's tap operation causes the label to appear outside the box
Input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;} The input box on the mobile side appears after the focus is taken
JS section
The null global variable lowercase, which defines the DOM array that stores the DOM nodes that are often found,
IMG section
JPG png gif
1.jpg Features:
* Support Image advanced compression, can use compression rate control image file size. JPEG is a lossy compression format that allows the user to set a custom quality level, which determines how much information is discarded for the image. The quality level from 0 to 100, but even if set 100, there will be a certain degree of quality loss.
* Not suitable for simple images with very few colors, areas with large blocks of color, or distinct luminance differences; no transparency or animations are supported
Images suitable for JPG storage: for realistic photographic images or images with very rich color levels, the image format of JPG can be saved generally to achieve the best compression effect.
Quality setting:do not save 100% of JPG images; Use the compression rate below 50% quality sparingly.
Optimization: It is recommended to use the "optimize JPG" format for maximum file compression, but some older browsers do not support this feature.
2.PNG Features:
* For more complex images that require high fidelity, PNG can be lossless compression, But the picture file is large and not suitable for use on Web pages.
PNG format has PNG8, PNG24, PNG32 PNG8 is a nickname for the palette png
PNG24 is a nickname for true-color PNG, but does not contain an alpha channel.
PNG32 is a nickname for true-color PNG, containing the alpha channel
1, the color of the image is less, and mainly in solid color or smooth gradient to fill.
2, with large brightness differences and strong contrast of simple images. 3.gif features: GIF is a lossless compression, and the picture supports progressive and interlaced scanning,
When a GIF file is generated, a compression algorithm (called LZW) is used to reduce the size of the file. But compress gif
, the pixel is scanned from the top to the next line. In this case, a better compression effect can be achieved when the image has many duplicate colors in the horizontal direction. For example, a 500*10 pixel image (500px 10px high), the image contains some provisions, that is, the horizontal direction is composed of the same color lines, the figure rotated 90 degrees (10px width 500px high). The vertical direction is made up of lines of the same color, after which the file is larger than the former.
* 4, SVG format features: SVG is scalable Vector graphics
Mobile Bank Big Turntable