简体   繁体   English

可变大小列的CSS 3列布局

[英]CSS 3 column layout of variable sizes columns

I am trying to create a 3 column layout where the center column is about 25em large than the outside panel column. 我正在尝试创建3列布局,其中中心列比外部面板列大25em。

Flex won't work because on mobile devices, the width parameter is basically ignored in flex. Flex无法使用,因为在移动设备上,width参数基本上在flex中被忽略。 No place I found on the www/google said anything better than flex sucks for mobile devices. 我在www / google上找不到的地方说什么比移动设备的flex更好。

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? 如何创建“无响应”(元素项/文本不会跨越列)的3列布局,该列可移动且列宽可变?

您的html头中是否有如下所示的元链接?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM