default & initial
browser default & css property inital(CSS specifications)
For example, for the display property, initial always means inline, because that’s the designated initial value of the property. In the example case, the browser default is block, since the element is div.
Thus, the initial value is of limited usefulness. A possible use case is for the color property, since its initial value is browser-dependent (mostly black, as we know, but not necessarily). For it, initial means browser default, since that’s how the property has been defined.
A similar use case is for font-family: by declaring font-family: initial, you get browser’s default font (which may depend on browser settings).
unset (css3)
属性值unset的值为:如果该样式是自动被继承的,则其值为继承的值;如果该样式不是自动被继承的,则其值为CSS规范(CSS specifications)指定的值。
可见属性值unset是initial和inherit的组合。
The inherit, initial, and unset values
overflow (css2):
visible(default): 如果内容过长,超出元素框显示
scroll: 不论内容多少,总显示两个滚动条
hidden: 超出内容不显示
auto: 只有在内容超出才会显示滚动条
inherit: 从父元素继承,IE不支持
initial: ????
unset: ????
overflow-x (css3):
visible(default): 同overflow
scroll: 不论内容多少,总显示两个滚动条
hidden: 高方向上有滚动条
auto: 同overflow
no-display: 如果内容不适合内容框,则删除整个框(文字测出来同visible)????
no-content: 如果内容不适合内容框,则隐藏整个内容(文字测出来同visible)????
overflow-y (css3):
visible(default):同overflow
scroll: 出现高的滚动条
hidden: 显示宽方向上滚动条
auto: 同overflow
no-display: 如果内容不适合内容框,则删除整个框(文字测出来同visible)????
no-content: 如果内容不适合内容框,则隐藏整个内容(文字测出来同visible)????
overflow-style (css3):
text-overflow (css3):
elipsis: 显示省略号
clip: 隐藏超出部分
string: ????
将超出部分显示成省略号要同时写以下属性
{
white-space:nowrap;
width:12em;
overflow:hidden;
border:1px solid #000000;
text-overflow:ellipsis;
}