首页前端开发HTMLw3c组织给出html4的样式建议

w3c组织给出html4的样式建议

时间2024-01-27 03:14:03发布访客分类HTML浏览678
导读:收集整理的这篇文章主要介绍了w3c组织给出html4的样式建议,觉得挺不错的,现在分享给大家,也给大家做个参考。 这是w3c组织给出htML4的样式建议,可惜浏览器们都加上自己的私有属性,让标准成了浮云。不过对于我们仍然是很有参考...
收集整理的这篇文章主要介绍了w3c组织给出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   {  displayblock }  
li              {  displaylist-item }  
head            {  displaynone }  
table           {  display: table }  
tr              {  displaytable-row }  
thead           {  displaytable-header-group }  
tbody           {  displaytable-row-group }  
tfoot           {  displaytable-footer-group }  
col             {  displaytable-column }  
colgroup        {  displaytable-column-group }  
td, th          {  displaytable-cell }  
caption         {  displaytable-caption }  
th              {  font-weightbolder;  text-aligncenter }  
caption         {  text-aligncenter }  
body            {  margin8px }  
h1              {  font-size2em;  margin: .67em 0 }  
h2              {  font-size1.5em;  margin: .75em 0 }  
h3              {  font-size1.17em;  margin: .83em 0 }  
h4, p, 
blockquote, ul, 
fieldset, form, 
ol, dl, dir, 
menu            {  margin1.12em 0 }  
h5              {  font-size: .83em;  margin1.5em 0 }  
h6              {  font-size: .75em;  margin1.67em 0 }  
h1, h2, h3, h4, 
h5, h6, b, 
strong          {  font-weightbolder }  
blockquote      {  margin-left40px;  margin-right40px }  
i, cite, em, 
VAR, address    {  font-styleitalic }  
pre, tt, code
kbd, samp       {  font-family: monospace }  
pre             {  white-spacepre }  
button, textarea, 
input, select   {  displayinline-block }  
Big             {  font-size1.17em }  
smallsub, sup {  font-size: .83em }  
sub             {  vertical-alignsub }  
sup             {  vertical-alignsuper }  
table           {  border-spacing2px;  }  
thead, tbody, 
tfoot           {  vertical-alignmiddle }  
td, th, tr      {  vertical-align: inherit }  
s, strike, del  {  text-decorationline-through }  
hr              {  border1px inset }  
ol, ul, dir, 
menu, dd        {  margin-left40px }  
ol              {  list-style-typedecimal }  
ol ul, ul ol, 
ul ul, ol ol    {  margin-top0;  margin-bottom0 }  
u, ins          {  text-decorationunderline }  
br:before       {  content"\A";  white-spacepre-line }  
center          {  text-aligncenter }  
:link, :visited {  text-decorationunderline }  
:focus          {  outlinethin dotted invert }  
 
/* Begin bidirectionality settings (do not change) */ 
BDO[DIR="ltr"]  {  directionltr;  unicode-bidibidi-override }  
BDO[DIR="rtl"]  {  directionrtl;  unicode-bidibidi-override }  
 
*[DIR="ltr"]    {  directionltr;  unicode-bidiembed }  
*[DIR="rtl"]    {  directionrtl;  unicode-bidiembed }  
 
@media print {  
  h1            {  page-break-beforealways }  
  h1, h2, h3, 
  h4, h5, h6    {  page-break-afteravoid }  
  ul, ol, dl    {  page-break-beforeavoid }  
}
Appendix D. Default style sheet for HTML 4

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

上一篇: IE6下网页制作参考 IE6 默认样式下一篇:IE6 空格bug修正方法猜你在找的HTML/Xhtml相关文章 了解HTTP Headers的方方面面 图文说明2022-04-12Html分层的box-shadow效果的示例代码2022-04-12html+css实现血轮眼轮回眼特效代码2022-04-12html实现随机点名器的示例代码2022-04-12HTML中table表格拆分合并(colspanrowspan)2022-04-12HTML页面滚动时部分内容位置固定不滚动的实现2022-04-12HTML+css盒子模型案例(圆半圆等)“border-radius” 简单易上手2022-04-12HTML通过表单实现酒店筛选功能2022-04-12HTML中的表单Form实现居中效果2022-04-12HTML+CSS制作心跳特效的实现2022-04-12 其他相关热搜词更多phpjavapython程序员

若转载请注明出处: w3c组织给出html4的样式建议
本文地址: https://pptw.com/jishu/587646.html
Xhtml下不常用却很有用的标签 网页设计参考 firefox 默认样式

游客 回复需填写必要信息