如何使 html 列可通过平板电脑 (Android) 上的触摸事件进行扩展?

发布于 2025-01-18 15:17:04 字数 50 浏览 2 评论 0原文

我正在尝试使由 6 列组成的页面的列可以在平板电脑(Android)上扩展。这可能吗?

I'm trying to make the columns of a page that consists of 6 columns to be expandable on tablet (Android). Is this possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

德意的啸 2025-01-25 15:17:05

我认为Flexbox容器应该足以满足您的需求。

#HTML

 <div class="row">
    <div class="column"></div>
    <div class="column"></div>
    <div class="column"></div>
    <div class="column"></div>
    <div class="column"></div>
    <div class="column"></div>
</div>

#CSS

.row {
    width: 100%;
    height: 100vh;
    background-color: red;
    display: flex;
    justify-content: space-between;
}

.column {
    width: 15%;
    height: 100%;
    background-color: bisque;
}

I think flexbox container should be enough to fulfill your needs.

#html

 <div class="row">
    <div class="column"></div>
    <div class="column"></div>
    <div class="column"></div>
    <div class="column"></div>
    <div class="column"></div>
    <div class="column"></div>
</div>

#css

.row {
    width: 100%;
    height: 100vh;
    background-color: red;
    display: flex;
    justify-content: space-between;
}

.column {
    width: 15%;
    height: 100%;
    background-color: bisque;
}
匿名。 2025-01-25 15:17:05

你在谈论崩溃吗?您可以使用Bootstrap手风琴
https://getbootstrap:/

Are you talking about Collapse? The you can use Bootstrap Accordion
https://getbootstrap.com/docs/5.0/components/accordion/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文