有没有一种方法可以为CSS3中的列指定不同的宽度? [英] Is there a way to specify different widths for columns in CSS3?

查看:127
本文介绍了有没有一种方法可以为CSS3中的列指定不同的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用CSS来呈现两列布局.我正在使用的标记是这个

I would like to use CSS to present a two-column layout. The markup I am using is this

<div style="-webkit-column-count: 2;
            -webkit-column-rule: 1px solid black;
            -webkit-column-width: 80px;
             margin-left:20px;margin-top:20px;">
    <div id="picturebox" style="">picture box</div>
    <div id="nme">name</div>
</div>

有没有一种方法可以使一列的宽度为20px,而一列的宽度为80px?

Is there a way to give one column a width of 20px and one column a width of, say, 80px?

推荐答案

不,没有办法.

此功能专为在相等的列之间流动的内容而设计.

The feature is designed for content that flows between equal columns.

这篇关于有没有一种方法可以为CSS3中的列指定不同的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆