本文介绍了三栏网页设计与可变侧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在想出一种方法来创建一个3列的网页设计,其中心列有一个恒定的宽度,并始终居中。左侧和右侧的列是可变的。这在表中是微不足道的,但在语义上不正确。我没有能够使所有当前的浏览器正常工作。

I've been trying to come up with a way to create a 3 column web design where the center column has a constant width and is always centered. The columns to the left and right are variable. This is trivial in tables, but not correct semantically. I haven't been able to get this working properly in all current browsers. Any tips on this?

推荐答案

使用,并为中心列指定固定宽度。

Use this technique, and simply specify a fixed width for the centre column.

这篇关于三栏网页设计与可变侧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 00:41