CSS初始化的程式碼一般要控制常見的頁面元素比如body div table等的大小,位置和背景色等夜頁面初始載入的樣式:
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td { margin:0; padding:0; }
body { font-size:12px; color:#666; font-family:Verdana, Microsoft YaHei, Simsun; background:#fff; line-height:24px; }
fieldset, img { border:0; }
ol, ul { list-style:none; }
h1, h2, h3, h4, h5, h6{ font-size:100%; }
em { font-style:normal; }
input, button, select, textarea { outline:none; }
textarea { resize:none; } //禁用了文字的拖拉,尤其在谷歌下
p{ text-align:justify; text-justify:distribute;} //為了使文字段落左右兩邊對齊
CSS初始化的程式碼一般要控制常見的頁面元素比如body div table等的大小,位置和背景色等夜頁面初始載入的樣式:
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td { margin:0; padding:0; }
body { font-size:12px; color:#666; font-family:Verdana, Microsoft YaHei, Simsun; background:#fff; line-height:24px; }
fieldset, img { border:0; }
ol, ul { list-style:none; }
h1, h2, h3, h4, h5, h6{ font-size:100%; }
em { font-style:normal; }
input, button, select, textarea { outline:none; }
textarea { resize:none; } //禁用了文字的拖拉,尤其在谷歌下
p{ text-align:justify; text-justify:distribute;} //為了使文字段落左右兩邊對齊