亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

您的位置:首頁技術文章
文章詳情頁

html - css3中多列高度 統一

瀏覽:76日期:2023-07-15 13:17:22

問題描述

<!DOCTYPE html><html lang='zh-cmn-Hans'><head><meta charset='utf-8' /><title>column-fill_CSS參考手冊_web前端開發參考手冊系列</title><meta name='author' content='Joy Du(飄零霧雨), [email protected], www.doyoe.com' /><style>body{font:14px/1.5 georgia,serif,sans-serif;}p{margin:0;padding:5px 10px;background:#eee;}h1{margin:10px 0;font-size:16px;}.test{ width:700px; border:10px solid #000; -moz-column-count:2; -moz-column-gap:20px; -moz-column-rule:3px solid #090; -moz-column-fill:balance; -webkit-column-count:2; -webkit-column-gap:20px; -webkit-column-rule:3px solid #090; -webkit-column-fill:balance; column-count:2; column-gap:20px; column-rule:3px solid #090; column-fill:balance;}.test p{ -moz-column-break-before:always; -webkit-column-break-before:always; column-break-before:always;}</style></head><body><h1>column-fill:balance</h1><p class='test'> <p>This module describes multi-column layout in CSS. By using functionality described in this document, style sheets can declare that the content of an element is to be laid out in multiple columns.</p> <p>This module describes multi-column layout in CSS. By using functionality described in this document</p></p></body></html>

html - css3中多列高度 統一

怎么使第2個p段落高度跟第一個一致,我這里已經加了column-fill:balance;屬性。求高手分析下,謝謝!

問題解答

回答1:

display: block;再設置寬高不好?

回答2:

<!DOCTYPE html><html lang='zh-cmn-Hans'><head><meta charset='utf-8' /><title>column-fill_CSS參考手冊_web前端開發參考手冊系列</title><meta name='author' content='Joy Du(飄零霧雨), [email protected], www.doyoe.com' /><style>body{font:14px/1.5 georgia,serif,sans-serif;}p{margin:0;padding:5px 10px;background:#eee;}h1{margin:10px 0;font-size:16px;}.test{ width:700px; border:10px solid #000; -moz-column-count:2; -moz-column-gap:20px; -moz-column-rule:3px solid #090; -moz-column-fill:balance; -webkit-column-count:2; -webkit-column-gap:20px; -webkit-column-rule:3px solid #090; -webkit-column-fill:balance; column-count:2; column-gap:20px; column-rule:3px solid #090; column-fill:balance;}</style></head><body><h1>column-fill:balance</h1><p class='test'> 這個是column要解決的CSS問題,也算是column真正使用的領域;這個是column要解決的CSS問題,也算是column真正使用的領域;這個是column要解決的CSS問題,也算是column真正使用的領域;這個是column要解決的CSS問題,也算是column真正使用的領域;這個是column要解決的CSS問題,也算是column真正使用的領域;這個是column要解決的CSS問題,也算是column真正使用的領域;這個是column要解決的CSS問題,也算是column真正使用的領域;這個是column要解決的CSS問題,也算是column真正使用的領域;這個是column要解決的CSS問題,也算是column真正使用的領域;這個是column要解決的CSS問題,也算是column真正使用的領域;這個是column要解決的CSS問題,也算是column真正使用的領域;</p></body></html>

應對您的解決方案:

<!DOCTYPE html><html lang='zh-cmn-Hans'><head><meta charset='utf-8' /><title>column-fill_CSS參考手冊_web前端開發參考手冊系列</title><meta name='author' content='Joy Du(飄零霧雨), [email protected], www.doyoe.com' /><style>body{font:14px/1.5 georgia,serif,sans-serif;}p{margin:0;padding:5px 10px;background:#eee;}h1{margin:10px 0;font-size:16px;}.test{ width:700px; border:10px solid #000; -moz-column-count:2; -moz-column-gap:20px; -moz-column-rule:3px solid #090; -moz-column-fill:balance; -webkit-column-count:2; -webkit-column-gap:20px; -webkit-column-rule:3px solid #090; -webkit-column-fill:balance; column-count:2; column-gap:20px; column-rule:3px solid #090; column-fill:balance;}.test p{ -moz-column-break-before:always; -webkit-column-break-before:always; column-break-before:always; min-height:6em;}</style></head><body><h1>column-fill:balance</h1><p class='test'> <p>This module describes multi-column layout in CSS. By using functionality described in this document, style sheets can declare that the content of an element is to be laid out in multiple columns.</p> <p>This module describes multi-column layout in CSS. By using functionality described in this document</p></p></body></html>

覺得建議您先想一下column的出現時為了解決什么問題的;起碼不是替代float之類的老標準的;如果像您這樣使用也算一種自找苦吃;

標簽: HTML
相關文章:
主站蜘蛛池模板: 黄色一级片免费 | 中文字幕国产在线 | 欧美黑人性猛交╳xx╳动态图 | 看亚洲a级一级毛片 | 大陆黄色网| 国产精品在线观看 | 日日摸夜夜添夜夜添欧美毛片 | 尤物免费网站 | 久久视频在线播放视频99re6 | 亚洲第一黄色网址 | 精品国产3p一区二区三区 | 日韩午夜在线视频不卡片 | 男女一级做片a性视频 | 亚洲精品一 | 国产综合欧美日韩视频一区 | 国产在线成人a | 久久中文字幕网 | 色爱综合网| 在线播放国产色视频在线 | 亚洲成年网站在线777 | 中文字幕一区二区三区不卡 | 一级a俄罗斯毛片免费 | 欧美黄色片 一级片 | 999久久久免费精品国产牛牛 | 黄色一级片毛片 | 婷婷色亚洲| 777国产精品永久免费观看 | 日韩美女一级毛片a | 国产91po在线观看免费观看 | 精品视频专区 | 免费观看黄色网址 | 午夜精品久久久久久99热 | 深夜小视频在线观看 | 青草视频免费在线观看 | 免费一级特黄欧美大片久久网 | 中文婷婷| 欧美一级高清免费a | 国产啊v在线观看 | 免费xxxxx大片在线观看影视 | 国产第一页在线视频 | 成人毛片网 |