English 中文(简体)
在Chrome和Camino的奇异迪夫行为,但在Safari则并非如此。
原标题:Strange div behaviour in Chrome and Camino, but not in Safari

我用一个非常基本的布局(http://korilu.nl/maurits/iets.html),

Now my problem is that when I was at school and visited my site using chrome on a Windows machine, it looked fine. The div#side was next to the div#content, but when I visited my site at home, where I am now, on a Mac machine using Chrome too, the div started moving... The first time I loaded the page it looked fine. The second time I loaded the page it moved down for the height of the div#content, but still on the right side of the page. And it changed per pageload, it was down there time 2, 4, 6, 8 etc.

在卡米诺(仍在马氏机器上),它每次都下到那里,没有移动...

在野外旅行中,它的行为完全如我所愿, 图像发现这里。这是张.tiff图像, 我希望你们都能看到它...

现在的问题是:我如何获得图像交叉浏览器所显示的页面?

PS
The font in the image is just the result of me playing with safari preferences and changing the default font.

最佳回答

您的侧边栏宽度为 25%, 您的内容为 75% 。 那么您的 < code>. vr 是 1px, 所以您的总宽度是 100% + 1. 。 侧边栏( 最后一个元素) 与左侧宽度不匹配( 其 1px 太大 ) 。

解决这个问题有多种方法。 尝试稍微改变宽度, 或用不同的方式处理 vr。 您可以使用此处描述的 faux 柱子方法 : < a href=" http://www. alistapart. com/ articles/ fauxcolunns/ " rel=" nofollow" > http://www. alistapart. com/ articles/ fauxcolunns/

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签