[Email protected]: the ability to load the server-side font files, let the client display the client does not have installed fonts. "Microsoft's IE 5 is already starting to support this property, but it only supports Microsoft's own. EOT (Embedded Open Type) format, and other browsers do not support this font format until now. However, starting with Safari 3.1, Web refactoring engineers can already set the. TTF (TrueType) and. OTF (OpenType) fonts as custom fonts. 】
Syntax: @font-face:{property: Value}
Value:
Font-family: Sets the font name of the text.
Font-style: Sets the text style.
Font-variant: Sets whether the text is case-sensitive.
Font-weight: Sets the thickness of the text.
Font-stretch: Sets whether the text is stretched horizontally.
Font-size: Sets the text font size.
SRC: Sets the relative path or absolute path of the custom font, note that this property can only be used in @font-face rules.
Src:url ('//at.alicdn.com/t/font_1464666184_1351352.eot '); /* ie9*/
Src:url ('//at.alicdn.com/t/font_1464666184_1351352.eot #iefix ') format (' Embedded-opentype '),/* IE6-IE8 */
URL ('//at.alicdn.com/t/font_1464666184_1351352.woff ') format (' Woff '),/* Chrome, Firefox */
URL ('//at.alicdn.com/t/font_1464666184_1351352.ttf ') format (' TrueType '),/* Chrome, Firefox, Opera, Safari, Android, IOS 4.2+*/
URL ('//at.alicdn.com/t/font_1464666184_1351352.svg#iconfont ') format (' SVG '); /* IOS 4.1-* *
2.window.onresize: Events that are triggered when the window is changed for large hours.
3.nav-child (num) differs from Nav-of-type (num): num counts from 1, p:nav-of-type (2) regardless of the parent's speed, just renders the second element of the P tag. Nav-child (2) and the parent has a few elements, if there is div,p,span, and so on, the meaning of the expression is not the same, it is possible nav-child useless, can not pinpoint. Differences between the HTTP://WWW.ZHANGXINXU.COM/WORDPRESS/2011/06/CSS3 selector Nth-child and Nth-of-type
4. Outside the chain icon: Select the desired icon, click into the cart-"storage-" Get Online link-"Click on the right Uncode get address-" Download CSS file-"Outside the link page-" Iconform and icon of the class written into the <i>-" Modify the contents of the icon's class in Style.css (size with font-size settings, background color with color, which is set as text).
5. (1) Center element: Css3:calc () supports arithmetic A{position:absolute;top:calc (50%-HEIGHT/2), Left:calc (50%-WIDTH/2)}//compatibility is not good, new label
(2) VH: palatability Unit,
6.input font style settings, must be set in input, no effect at the parent level. The browser has default settings for the input style.
7.ajax loads the HTML style, which must be bound to the parent element of the loaded style when it is handled with jquery events, otherwise the event is invalid. On the phone side is generally used on bindings.
8. (1) IE6 compatible opcity filter:alpha (opcity=50); If you set the value to 0.5, (2) Set margin to negative, the box will move in the opposite direction
Let's sum it up, next time. If you have any questions, please crossing timely point out, thank you!!!
Mobile Page Summary