首 页
Blog
论 坛
CSS
繁體中文
<<返回css属性列表
display
语法:
display : block | none | inline | compact | marker | inline-table | list-item | run-in | table |table-caption | table-cell | table-column | table-column-group | table-footer-group | table-header-group | table-row | table-row-group
参数:
block : CSS1ĬֵøֵΪ֮ none : CSS1ضvisibilityԵhiddenֵͬ䲻ΪصĶռ inline : CSS1ĬֵøֵӶɾ compact : CSS2Ϊ֮ϵ marker : CSS2ָ֮ǰ֮Ҫʹô˲:after:before αԪһʹ inline-table : CSS2ʾΪǰе list-item : CSS1ָΪбĿӿѡĿ־ run-in : CSS2Ϊ֮ϵ table : CSS2ΪԪؼıʾ table-caption : CSS2Ϊʾ table-cell : CSS2ΪԪʾ table-column : CSS2Ϊʾ table-column-group : CSS2Ϊʾ table-header-group : CSS2Ϊʾ table-footer-group : CSS2Ϊעʾ table-row : CSS2Ϊʾ table-row-group : CSS2Ϊʾ
说明:
ûǷʾ Ŀǰ IE5.5֧CSS1IJ ӦĽűΪdisplay
示例:
img { disply: block; float: right; }
ֿ
Сǿ
ͼƬ
·ѡѡ
display
ԵIJֵͬһᷢʲôȻͻԵ塣ϣϲⱾ顣лл
ԣ
display : block
display : none
display : inline
display : list-item
display : marker
display : run-in
display : inline-table
display : table
display : table-caption
display : table-cell
display : table-column
display : table-column-group
display :compact
display : table-footer-group
display : table-row-group
display : table-row
display : table-header-group
版本:
CSS1/CSS2
兼容性:
IE4+ NS4+
继承性:
绿色
CSS2标准属性
蓝色
IE建议样式表属性
黄色
NS私有属性
红色
尚无浏览器支持的属性
* 注:此页面只提供展示,方便用户学习,版权归作者所有
Copyright © 2001-2024 U6U8.Net