盒模型 微筆記


Posted by CodaCoding on 2022-06-11

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

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


#切版筆記







Related Posts

Day 66 留言板 - Part 2

Day 66 留言板 - Part 2

01-先從外觀說起就對了!

01-先從外觀說起就對了!

ICT 筆記 01 - 容量單位、速度單位、IP

ICT 筆記 01 - 容量單位、速度單位、IP


Comments