html的一些标准css样式
2010-04-22 20:25
10 查看
在html中,即使我们没有指定页面元素显示的css样式,元素也会按照默认的的标准css样式去显示。因此掌握基本的html标签可以在一定程度上精简你的css代码,现将html标签的默认属性进行一定的汇总如下:
li { display: list-item }
head { display: none }
table { display: table }
tr { display: table-row }
thead { display: table-header-group }
tbody { display: table-row-group }
tfoot { display: table-footer-group }
col { display: table-column }
colgroup { display: table-column-group }
td, th { display: table-cell; }
caption { display: table-caption }
th { font-weight: bolder; text-align: center }
caption { text-align: center }
body { margin: 8px; line-height: 1.12 }
html, address,
blockquote,
body, dd, div,
dl, dt, fieldset, form,
frame, frameset,
h1, h2, h3, h4,
h5, h6, noframes,
ol, p, ul, center,
dir, hr, menu, pre { display: block }
本文来自CSS在线:http://www.csscss.org/cssarticle/2010413844.shtml
li { display: list-item }
head { display: none }
table { display: table }
tr { display: table-row }
thead { display: table-header-group }
tbody { display: table-row-group }
tfoot { display: table-footer-group }
col { display: table-column }
colgroup { display: table-column-group }
td, th { display: table-cell; }
caption { display: table-caption }
th { font-weight: bolder; text-align: center }
caption { text-align: center }
body { margin: 8px; line-height: 1.12 }
html, address,
blockquote,
body, dd, div,
dl, dt, fieldset, form,
frame, frameset,
h1, h2, h3, h4,
h5, h6, noframes,
ol, p, ul, center,
dir, hr, menu, pre { display: block }
本文来自CSS在线:http://www.csscss.org/cssarticle/2010413844.shtml
相关文章推荐
- HTML常用的特殊符号总结 2014年9月12日 22704次浏览 html中经常会用到一些特殊符号,例如箭头,雪花,心形等等,这些符号就不用css样式或者图片来写了,直接用html特殊符号可以实现。
- Head First HTML & CSS chapter 6 ,7 :HTML5标准,加一点CSS样式
- 2016-8-22:html一些的标准
- 【Web前端开发最佳实践系列】标准的HTML代码
- 总结html中的一些标签的区别,希望有不全的大家指出
- HTML中引入CSS样式有几种形式?
- html+css的一些技巧.收集中...
- 使用HtmlGenericControl控件动态产生一些HtmlControls
- 6款漂亮HTML CSS样式用户留言表单
- 一些很少用到但还不错的Html功能
- 一些HTML知识
- HTML前端——CSS样式
- 一些CSS样式和js
- 网站在linux服务器上运行出现的问题(数据路10038问题,网站一些CSS样式出不来,创建目录失败等问题)
- 在Drupal的form表单中使用js事件,比如onClick和onChange等,或者加载一些css样式等自己需要的杂七杂八的东西
- 脚本实现获取cloudstack中资源和一些状态信息以html报表显示
- HTML的一些常用标签
- 怎么通过 JavaScript 把HTML里的css样式改变。
- HTML 5提供的一些新的标签用法以及和HTML 4的区别。
- html中常见的一些字符实体