CSS 3列可变大小列的布局(CSS 3 column layout of variable sizes columns)

编程入门 行业动态 更新时间:2024-10-28 11:26:39
CSS 3列可变大小列的布局(CSS 3 column layout of variable sizes columns)

我正在尝试创建一个3列布局,其中中心列大约比外部面板列大25em。

Flex不起作用,因为在移动设备上,flex参数基本上被忽略。 没有我在www / google上找到的地方说比移动设备的flex更糟糕。

如果列的宽度相同,此处提供的解决方案在移动设备上运行良好。 我无法弄清楚如何在不破坏布局的情况下放大中心柱以前的解决方案(新问题)

如何创建“无响应”(元素项/文本不会跨列)3列可移动友好的可变列宽?

I am trying to create a 3 column layout where the center column is about 25em large than the outside panel column.

Flex won't work because on mobile devices, the width parameter is basically ignored in flex. No place I found on the www/google said anything better than flex sucks for mobile devices.

The solution provided here works great on mobile devices if the columns are all the same width. I could not figure out how to enlarge the center column without breaking the layout Previous solution (new issue)

How do I create a 'non responsive' (element items/text won't span columns) 3 column layout that is mobile friendly of variable column width?

最满意答案

你的html头中有一个如下所示的元链接吗?

<meta name="viewport" content="width=device-width, initial-scale=1">

do you have a meta link like below in your html head?

<meta name="viewport" content="width=device-width, initial-scale=1">

更多推荐

本文发布于:2023-07-17 04:38:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1139216.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:布局   大小   column   CSS   sizes

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!