盒模型 微筆記


Posted by CodaCoding on 2022-06-11

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

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


#切版筆記







Related Posts

jQuery初學筆記-2

jQuery初學筆記-2

[ 筆記 ] debounce 的用法

[ 筆記 ] debounce 的用法

[SQL] Want to declare a string array variable? Declare a table variable instead.

[SQL] Want to declare a string array variable? Declare a table variable instead.


Comments