盒模型 微筆記


Posted by CodaCoding on 2022-06-11

物件寬高 = 物件本身+padding+border,
margin不影響物件高度,但是在網頁上看會影響!

用margin:0 auto 可以讓區塊水平置中 (等於左右邊加auto)
讓區塊內的文字元素置中 則用 text-align: center


#切版筆記







Related Posts

[ week 1 ]  Git  vs. GitHub

[ week 1 ] Git vs. GitHub

Nuxt(4) - context

Nuxt(4) - context

 元件進階# refs

元件進階# refs


Comments