色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

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

html - css3中多列高度 統一

瀏覽:77日期: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
相關文章:
主站蜘蛛池模板: 久久99热精品免费观看欧美 | 亚洲精品欧洲一区二区三区 | 亚洲日本高清成人aⅴ片 | 热99re久久精品精品免费 | 国产精品久久亚洲一区二区 | 免费一级毛片在线播放不收费 | 理论片黄色| 国产精品久久自在自线观看 | 另类亚洲孕妇分娩网址 | 欧美一级级毛片 | 香蕉视频1024 | 国产一级免费 | 欧美视频一区二区在线观看 | 国产精品亚洲一区二区三区 | 国内精品九一在线播放 | 性高湖久久久久久久久 | 亚洲综合色dddd26 | 一区二区视频在线 | 日韩亚洲精品不卡在线 | 国产午夜精品理论片免费观看 | a级国产乱理伦片在线观看国 | 久久久久久久99精品免费 | 国产亚洲欧美一区二区 | 久久精品三级视频 | 亚洲午夜免费 | 久久久久亚洲国产 | 亚洲欧美日本人成在线观看 | 亚洲特一级毛片 | 女人张开腿男人猛桶视频 | 久久精品国产一区二区 | youjizzxxx69日本| 免费一级特黄a | 日本色中色 | 亚洲视频在线a视频 | 亚洲综合精品成人 | 精品久久久视频 | 国产精品va一级二级三级 | 欧美日韩中 | 久久一区二区三区免费 | 欧美日韩亚洲一区二区三区在线观看 | 亚洲免费小视频 |