HTML標(biāo)簽?zāi)J樣式

Chrome 55

html

font-size: 16px;

body

margin: 8px;

div

ul

list-style-type: disc;
margin: 1em 0; /* html默認字體大小是16px,所以1em = 16px; */
padding-left: 40px;

ol

list-style-type: decimal;
margin: 1em 0;
padding-left: 40px;

dl

margin: 1em 0;

li

dt

dd

margin-left: 40px;

h1

font-size: 2em; /* 32px ,默認字體大小是16px,下同 */
margin: 0.67em 0; /* 21.44px */

h2

font-size: 1.5em; /* 24px */
margin: 0.83em 0; /* 19.92px */

h3

font-size: 1.17em; /* 18.72px */
margin: 1em 0; /* 18.72px */

h4

margin: 1.33em 0; /* 21.28px */

h5

font-size: 0.83em; /* 13.28px */
margin: 1.67em 0; /* 22.187px */

h6

font-size: 0.67em; /* 10.72px */
margin: 2.33em 0; /* 27.96px */

p

margin: 1em 0;

a

color: -webkit-link; /* rgb(0, 0, 238) / #00e */
text-decoration: underline;
cursor: auto;

span

strong, b

 font-weight: bold;

em, i

 font-style: italic;

form

input

border: 2px inset initial;
padding: 1px 0;
font: 13.3333px Arial;

label

select

box-sizing: border-box;
white-space: pre;
font: 13.3333px Arial;
color: #000;
border: 1px solid rgb(169, 169, 169); /* #a9a9a9 */

textarea

padding: 2px;
word-wrap: break-word;
border: 1px solid;

button

padding: 1px 6px;
border: 2px outset buttonface; /* rgb(192,192,192) / #c0c0c0 */
min-height: 1.2em;
white-space: pre;

table

display: table;
border-collapse: separate;
border-spacing: 2px;
border-color: grey; /* rgb(128, 128, 128) / #808080 */

thead

display: table-header-group;
vertical-align: middle;
border-color: inherit;

tbody

display: table-row-group;
vertical-align: middle;
border-color: inherit;

tr

display: table-row;

th

display: table-cell;
font-weight: bold;
text-align: -internal-center;
/* padding: 1px; */

td

display: table-cell;
/* padding: 1px; */
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 本文是針對剛學(xué)編程的小白,都是一些基礎(chǔ)知識,如果想了解更多深層一點的東西,歡迎移步本人博客!! 博客地址 點擊跳轉(zhuǎn)...
    西巴擼閱讀 648評論 0 0
  • 問答題47 /72 常見瀏覽器兼容性問題與解決方案? 參考答案 (1)瀏覽器兼容問題一:不同瀏覽器的標(biāo)簽?zāi)J的外補...
    _Yfling閱讀 14,206評論 1 92
  • HTML5 標(biāo)簽comment 注釋標(biāo)簽用于在源文檔中插入注釋。注釋內(nèi)容不會被瀏覽器顯示。為代碼編寫注釋的好處是...
    才気莮孒閱讀 4,252評論 1 25
  • 騰訊QQ官網(wǎng) 樣式初始化 body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,f...
    ASOASM閱讀 530評論 0 1
  • 12年的時候我參加了一個中法紅酒會。我對酒沒什么興趣,也就湊個熱鬧。在場有幾個美女,基本上都是迎來往送,八面玲瓏,...
    泡泡戀愛學(xué)閱讀 4,444評論 2 12

友情鏈接更多精彩內(nèi)容