Html笔记1(HTML note 1)

HTML选择器列:<style type:”text/css”>xxx{

}</style>

. class# id: {} type button password等

div .left 所有后代div>.left 第一代 子代div +.left 下一个兄弟节点div ~.left 后面所有的兄弟节点div.left 元素本身

[arr] 包含这个属性[arr=val] 等于[arr!=val] 不等于[arr*=val] 包含[arr^=val] 开头[arr$=val] 结尾

a[href] a标签的元素a[href=’#’] a标签为#连接的元素a[href!=’#’] a标签不为#连接的元素a[class^=’1′] 类开头为1的元素a[class$=’1′] 类结尾为1的元素

CSS不重复补充图片background-repeat:no-repeat;显示图片方位background-position消除a标签下划线text-decoration: none;文本格式正常font-weight: normal;文本开头空两行text-indent: 2em;文本高度为2line-height: 2em;

————————

HTML选择器列:<style type:”text/css”>xxx{

}</style>

. class# id: {} type button password等

Div. Left all descendants div & gt Left first generation descendant div +. Left all sibling node div.left elements behind the next sibling node div ~. Left

[arr] including this attribute [arr = Val] is equal to [arr! = Val], not equal to [arr * = Val] including the beginning of [arr ^ = Val] and the end of [arr $= Val]

A [href] element of a tag a [href = ‘#’] a tag is # connected element a [href! = ‘#’] a tag is not # connected element a [class ^ =’1 ‘] element with the beginning of class 1 a [class $=’1’] element with the end of class 1

CSS does not repeat the supplementary picture background repeat: no repeat; Display picture orientation background position eliminate a label underline text decoration: none; Normal text format font weight: normal; Text indent: 2em; The text height is 2line height: 2em;