文档详情

css常见用法(国外英文资料).doc

发布:2017-06-09约1.65万字共19页下载文档
文本预览下载声明
css常见用法(国外英文资料) Position: relative is offset relative to the original position, only moving its own position, the rest. Absolute relative to the whole browser to elements, be replaced by the position of the back of the original position, it is the default top: 10 px, left: 10 px, if you want to completely rely on the upper left corner of the browser, with left: 0; Top: 0; If you change the browser window, it will also scale. Fixed ie8 doesnt seem to support it, its not scalable in firefox, but when the browser window changes, it still moves, but it doesnt scale The static is the default. The indent of text-indent Div has to be lined up and waiting for long to copy the # id style type = text/CSS ! -- The @import url (1. / / it can also be @import 1.css (this doesnt seem to work) You can add the @import url (2.css) here and add two CSS files You can also add the @import url (2.css) in the 1.css, so you can only import 1. CSS can also be used with two CSS, which is fine -- -- / style link href = 1.css type = text/CSS rel = stylesheet / If multiple styles are duplicated, the priority is at least @import, which is the style in head, which is the link, and the highest is the style of the line The line - height: 100%; The height of a line is 100 percent of the font, meaning that there is only one word in a line, and there is no room for up and down Img {filter: alpha (= 100, finishopacity = 0, style = 2) The filter effect for the image is only useful in ie, the value of style is different, and the direction of control is controlled H1, h2, h3, # someid,.cc, h2.ss {... Collective selector The special I {color: red} nested options Top 1 strong {font-size: 16px} H1 {text - decoration: underline} h1 HHHH em cc / em / h1 this code HHHH and cc all the underline, because the son inherited his fathers property, but the son himself will cover his fathers attribute The font in HTML is font face = .. , CSS is font-family: Can the font-family: bold, Arial, song typefac
显示全部
相似文档