iT邦幫忙

1

bootstrap5高度問題? container-sm高度,原生怎麼設定?

bootstrap5高度問題? container-sm高度怎麼設定?

看來看去中斷點都只有寬度max-width: 540px;
那為什麼RWD高度好像都有固定高度?都找不到container高度相關設定??高度怎麼來???

謝謝

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
deh
iT邦研究生 1 級 ‧ 2021-12-05 23:24:47
最佳解答

寬度參考
https://bootstrap5.hexschool.com/docs/5.0/layout/containers/
有預設值的

高度取決於內容
bootstrap grid system 的概念就是分columns的

ppp896 iT邦新手 4 級 ‧ 2021-12-06 10:49:28 檢舉

我也是這樣想?在bootstrap5中container找不到高度?但自己寫的CSS若想維持像(bootstrap5格線)都會有 min-height所以就想了一堆?是不是有缺什麼?感謝您的回答

deh iT邦研究生 1 級 ‧ 2021-12-06 11:14:56 檢舉

以前遇過垂直比例的需求,當時用bootstrap也弄不出來,最後只好手動寫Flex

arguskao iT邦新手 4 級 ‧ 2022-04-22 23:54:50 檢舉

我也想知道這個問題
其實是想說如果寫兩個container,結果畫面是兩個容器貼緊緊
不知道如何中間有空位

我要發表回答

立即登入回答