0

我有一个 WordPress 子菜单,其中有一个背景图像设置为背景大小:包含。它的宽度很大(280%),以确保即使在高分辨率下它也是全屏的。这是来自 Firefox 的屏幕截图(这就是它的显示方式)。

在此处输入图像描述 (高分辨率)

相反,在 Chrome 和 IE 上,它显示如下:( 在此处输入图像描述 高分辨率)

为什么它的宽度这么小?

这里是网站直播。

4

1 回答 1

0

This is rather tricky to explain!

It seems you have that <ul> tag nested within multiple <div> tags. One of them has a set width. I believe it's the <div> with your logo, name, and search bar in it. It's set to 920px. Since your <ul> tag is nested within this <div>, if you set the width to 100%, the biggest it can get is 920px wide. To fix it, you must take it out of the <div> with the set width.

The reason width:280%; works is because it's > 2700px.. which would fill out any screen. Except Chrome and IE are very confused on why you'd want to do that!

I'd like to stay and help you fix it up, but sadly I'll be heading out! If you don't happen to get it working by the time I get back I'll update my post.

于 2013-10-17T23:54:50.027 回答