css中的預設margin

2021-09-08 17:21:21 字數 385 閱讀 3889

上班打醬油中,***;

body的margin為8px;

webkit預設行高18px;height18px;

預設font-size16px

p預設margin是16px 0 16px 0;

ul和ol有預設的margin-left:40px的padding-left和16px 0 16px 0;

button有2px的border;我沒搞懂為什麼button之間有空格;

css如果要模組化開發主要是:base.css;common.css;reset.css;button.css;sprit.css;dialog.css;main.css;detail.css

哎呀我勒個去,css也是乙個天坑啊

css中的預設margin

上班打醬油中,body的margin為8px webkit預設行高18px height18px 預設font size16px p預設margin是16px 0 16px 0 ul和ol有預設的margin left 40px的padding left和16px 0 16px 0 button有2...

CSS有預設margin和padding的標籤總和

在寫網頁的時候會發現元素之間會有空隙。設定了 html,body 一.h1 h6標籤 有預設margin top,bottom且相同 值,沒有預設padding值。在chrome中 16,15,14,16,17,19 在firefox中 16,15,14,16,17,20 在safari中 16,1...

深入css中的margin

深入css中的margin 第一 margin top css 元素沒有任何定位的情況下,並且元素預設為block html div class outer div class inner div div 效果 原因,div預設的是我們塊級元素,它是獨佔一行的,當margin top的時候,整個行,...