• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com专业计算机教程网站
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure
您的位置:首页 > 网页设计 >html/xhtml > w3c组织给出html4的样式建议

w3c组织给出html4的样式建议

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-08-05

本文主要包含html4等相关知识,佚名 希望在学习及工作中可以帮助到您
这是w3c组织给出html4的样式建议,可惜浏览器们都加上自己的私有属性,让标准成了浮云。不过对于我们仍然是很有参考意义的。
Appendix D. Default style sheet for HTML 4
This appendix is informative, not normative.

This style sheet describes the typical formatting of all HTML 4 ([HTML4]) elements based on extensive research into current UA practice. Developers are encouraged to use it as a default style sheet in their implementations.

The full presentation of some HTML elements cannot be expressed in CSS 2.1, including replaced elements ("img", "object"), scripting elements ("script", "applet"), form control elements, and frame elements.

For other elements, the legacy presentation can be described in CSS but the solution removes the element. For example, the FONT element can be replaced by attaching CSS declarations to other elements (e.g., DIV). Likewise, legacy presentation of presentational attributes (e.g., the "border" attribute on TABLE) can be described in CSS, but the markup in the source document must be changed.

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 } 
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 } 
h1              { font-size: 2em; margin: .67em 0 } 
h2              { font-size: 1.5em; margin: .75em 0 } 
h3              { font-size: 1.17em; margin: .83em 0 } 
h4, p, 
blockquote, ul, 
fieldset, form, 
ol, dl, dir, 
menu            { margin: 1.12em 0 } 
h5              { font-size: .83em; margin: 1.5em 0 } 
h6    &n

您可能想查找下面的文章:

相关文章

  • 2017-08-05input file自定义按钮美化(演示)
  • 2017-08-05html option禁用选择 select禁用选项示例
  • 2017-08-05Html 实现动态显示颜色块的报表效果(实例代码)
  • 2017-08-05IE浏览器HTML Hack标签总结
  • 2017-08-05总结XHTML代码常见的应用问题
  • 2017-08-05input中id和name属性的区别示例介绍
  • 2017-08-05HTML外部引用CSS文件不生效原因分析及解决办法
  • 2017-08-05H标记要在网页制作中合理使用
  • 2017-08-05html设置加粗、倾斜、下划线、删除线等字体效果
  • 2017-08-05flash嵌入html 在html网页代码中嵌入Flash文件的解决方案(上)

文章分类

  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure

最近更新的内容

    • 纯css为select添加样式(无脚本)实现
    • HTML基础之HTML内容细则
    • disabled不可输入的值无法传递到action层
    • 网页排版应该考虑IE6的兼容性问题
    • html页面使用include导入php文件后多出一空白行
    • html滚动条 textarea属性设置
    • html中的meta标记简单对照
    • 多种实例解析HTML表单form的使用方法
    • 网页制作中使用规范的HTML代码的几点
    • 表单元素与提示文字无法对齐的问题

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有