style css 樣式初始化 大全

2021-09-24 21:16:43 字數 640 閱讀 6376

/** 清除內外邊距 /

body, h1, h2, h3, h4, h5, h6, hr, p,

blockquote, / structural elements 結構元素 /

dl, dt, dd, ul, ol, li, / list elements 列表元素 /

pre, / text formatting elements 文字格式元素 /

form, fieldset, legend, button, input, textarea, / form elements 表單元素 /

th, td, / table elements **元素 /

img/ img elements 元素 /

/ 設定預設字型/

body,button, input, select, textarea

h1, h2, h3, h4, h5, h6

em/重置列表元素/

ul, ol,

/重置超連結元素/

a a:hover

/重置元素/

img/重置**元素 **/

table

樣式初始化

樣式初始化 reset body,h1,h2,h3,h4,h5,h6,p,dl,dd ul,ol a liimg css reset 原則 但凡是瀏覽預設的樣式,都不要使用。父級 後代 後代選擇器 標籤的兩大陣營 塊級標籤 特徵 預設寬度100 div 內聯標籤 特徵 內容撐開寬度 span 塊級標...

CSS初始化樣式

body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,selectbodyaa hoveremliimgtablep body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,...

CSS初始化樣式

css為什麼要初始化?建站老手都知道,這是為了考慮到瀏覽器的相容問題,其實不同瀏覽器對有些標籤的預設值是不同的,如果沒對css初始化往往會出現瀏覽器之間的頁面差異。當然,初始化樣式會對seo有一定的影響,但魚和熊掌不可兼得,但力求影響最小的情況下初始化。body,ol,ul,h1,h2,h3,h4,...