结构伪类
li:nth-child(n){}
li:last-child{}
li:first-child{}
li:nth-last-child(n){}
li:nth-first-child(n){}
按顺序分别是
- 第n个元素
- 最后一个元素
- 第一个元素
- 倒数第n个元素
- 正数第n个元素
空伪类选择器:
:empty{}
排除伪类选择器:
li:not(p){}
li:not(class*=li2){}
其中:
伪类选择器; :
伪元素选择器
其他衍生选择器:
li:nth-of-type(n){}
li:first-of-type{}
li:last-of-type{}
li:only-of-type{}
指定p类型的标签元素的第二个为编辑对象.
only这个是li为其父元素下唯一的标签
li:first-child
文本阴影
text-shadow:1px 2px 3px #ffffff,4px 5px 6px #000000;
可以嵌套多个,用,
分割,值分别是水平偏移量,垂直偏移量,阴影模糊度,阴影颜色.
盒子阴影
boder-shadow:1px 2px 3px #ffffff;
英文强制换行
word-break: break-all;
圆角
border-radius: 1px 2px 3px 4px;
一个值,四个角都是半径为n的圆角
两个值,左上和右下,左下和右上,分两组.
三个值,左上,youxiahezuo右上和左下,右下
四个值,上右下左