2025 iThome 鐵人賽
分享至
網頁元素產生的容器通常都會有「寬度與高度」,這個單元會介紹容器的寬度 width、高度 height、max-width、min-width、max-height、min-height 等樣式屬性用法,還會使用 max-content、min-content、fit-content 等屬性值,讓內容去決定容器的尺寸。
影片重點:
00:00:47 設定寬度與高度的樣式屬性 00:03:03 寬度與高度使用的單位 00:06:41 寬度或高度使用 auto 關鍵字 00:10:38 限制長寬的範圍 00:13:20 使用 max-content、min-content、fit-content 關鍵字屬性值
相關參考:
教學文:CSS 設定寬度、高度 影片連結:https://www.youtube.com/watch?v=Hz1oAjAaSyA
更多參考: Youtube 頻道:https://www.youtube.com/@steam.oxxostudio CSS 教學大全:https://steam.oxxostudio.tw/category/css/index.html
更多參考:
IT邦幫忙