过去几天我尝试过并努力克服这个问题,因为我只想让这个站点现在首先启动。上周我一直在开发这个功能,我一直在使用我的特定首选浏览器Google Chrome。是的,大错特错!在FF + Opera中无法识别DIV,在IE + Chrome中工作
无论如何,这里是演示网站这说明什么,我想不久的一切看起来像(道歉一些东西,是出来的地方,都还远没有结束!):http://www.weburton.co.uk/content/demo/
你看社会区?它在Chrome中正确显示;完全如我所愿。在IE中它显示div区域,但是有一些样式问题,例如Twitter端的文本。
但是,div区在其他浏览器中完全被忽略了;它是一个奇怪的问题,我承认这一点。我把它们装在一个有背景图像的div(selenasocial)中,然后让其他div浮动。下面是代码(CSS):
#selenasocial {
background: url(images/wls/social-bg.jpg) no-repeat top center;
display: inherit;
width: 100%;
min-height: 263px;
z-index: 555;
border: none;
overflow:auto;}
.selenasocial {
background: url(images/wls/social-bg.jpg) no-repeat top center;
display: inherit;
width: 100%;
min-height: 263px;
z-index: 255;
border: none;
overflow:auto;}
.selenasocial img {
border: none;}
.twitsocial {
float: left;
width: 480px;
padding-top: 10px;
text-align: center;
border: none;}
.facesocial {
float: left;
width: 480px;
padding-top: 10px;
text-align: center;
border: none;}
这里是HTML,我使用的小工具(是的,他们已经正确的functions.php风格):
<!-- Selena Gomez Social Networks -->
<div class="selenasocial">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar("Social Sidebar")) : ?> <?php endif;?>
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar("Social Sidebar 2")) : ?> <?php endif;?>
</div>
我克服了通过将上面的CSS复制到一个单独的IE.css文件中,IE中的错误(因为它也发生在那里)。我只是不明白为什么两个浏览器在IE浏览器之前跳跃并且没有从主CSS文件中读取。
任何帮助都会受到高度赞赏 - 在过去的几天里,我一直在为此而撕心裂肺。
在此先感谢!
...好吧,我觉得自己是个笨蛋。 非常感谢您的帮助。当我即将开始这个完整的主题时,你真的救了我。 你是明星。 :-) – Steven