盒模型 微筆記


Posted by CodaCoding on 2022-06-11

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

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


#切版筆記







Related Posts

pseudo-class    :last-child, :first-child

pseudo-class :last-child, :first-child

SQL  bitwise operator

SQL bitwise operator

[第九週] 從 PHP 連線到 MySQL 資料庫

[第九週] 從 PHP 連線到 MySQL 資料庫


Comments