定位第n列(按列数) [英] targeting nth column(made by column-count)

查看:82
本文介绍了定位第n列(按列数)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有这个

<ul>
    <li>test</li>
    <li>test</li>
    <li>test</li>
    <li>test</li>
    <li>test</li>
    <li>test</li>
</ul>


ul {
   column-count: 2;
}

我想将第一列右对齐,将第二列左对齐,是否有任何方法可以使用css选择器来定位其中一列?

and I want to align first column to right and the second to left, is there any way to target one of those columns using css selectors?

推荐答案

到目前为止,还没有办法使用纯CSS来定位第n列.

As of now, there is no way to target nth column with pure css.

这篇关于定位第n列(按列数)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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