css padding 與margin的區別

來源:互聯網
上載者:User

css padding 與margin的區別,下面我們來看看一張圖片,然後再來具體的根據圖片進行分析padding 與margin的區別何在吧

如上圖,A,B兩個方框,A代碼padding,B代表margin,現在我們看A箭頭與藍色邊框的距離,這就是padding叫做內邊距,下面再來看看B外面的箭頭與B之前的距離就是我們所說的margin的,叫做外間距,哈哈你現在應該明白了,什麼是padding,什麼是margin,

本站原創轉載請註明來處www.111cn.net

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.