html - 指定 CSS3 列的宽度

标签 html css

我想使用 CSS3 列属性制作 3 列。我还想指定这 3 列的宽度。

是否可以为不同的列指定不同的宽度?假设我想要 col1 = 200px, col2 = 300px, col3=400px;

请帮帮我。

最佳答案

#columns {
  columns:100px 3;
  -webkit-columns:100px 3; 
  -moz-columns:100px 3; 
}

<div id="columns">
   Content here here
   Content here here
   Content here here
   Content here here
</div>

http://jsfiddle.net/hWbxk/

关于html - 指定 CSS3 列的宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17401402/

相关文章:

javascript - 到达页面末尾时翻转弹出窗口的方向

jquery - 如何使用 Chart.JS 创建堆积条形图/水平图?

html - html5 sectioning 元素的问题

javascript - jquery 按钮样式在 html 表中不起作用

html - CSS 网格中的缩进

php - 下拉菜单不起作用

html - 没有通过 css 的类?

css - 如何更改 Semantic UI React Dropdown 的边框颜色?

css - 带溢出的下拉菜单 :visible moves divs around dropdown in Safari?

CSS:绝对位置不是相对于 div 定位它