css
1,css是由以下三大块构成的:默认值,继承系统与加权系统。默认值,也就是浏览器在用户没有设置属性的情况下,默认指定的属性。css框架基本都有一个叫reset.css的文件,就是对其进行重设,消除浏览器的差异。加权系统,是优先级的问题,
css中许多属性都是可以继承的,如某个段落的字体设置为白色,其元素的字体不用设置或设置为inhert,她就是白色。这些属性被称之为inherited property,它会从父元素获取对应属性的经过计算与转换的值,如果父元素和它的情形一样,它就继续往上找,最后乜有就使用浏览器的默认值。
inherited property:
border-collapse
border-spacing
caption-side
color
cursor
direction
empty-cells
font
font-family
font-stretch
font-size
font-size-adjust
font-style
font-variant
font-weight
letter-spacing
line-height
list-style
opacity
list-style-image
list-style-type
quotes
text-align
text-indent
text-transform
white-space
word-spacing
2,noWrap规定表格单元格内的元素不自动换行。
浙公网安备 33010602011771号