我已经更新了我网站上的横幅。有无法解释的超出边距(从左边第一个到左边第二个之间)。边距是 HTML 中的新行,但没有任何推子元素来容纳它。有点奇怪。
我试图设置一个jsfiddle,但那里不存在错误。
这是代码:
<br>
<div class="invisible_box">
<a class="overlay" onclick="window.open('http://www.s-maof.com/LandingPages/PRO/','PRO','scrollbars=yes, toolbar=no,status=no, width=570,height=650')"></a>
<object type="application/x-shockwave-flash" data="http://s-maof.com/stuff/bannerPro150x75.swf" width="150" height="75">
<param name="movie" value="http://s-maof.com/stuff/bannerPro150x75.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="loop" value="false" />
</object>
</div>
<div class="invisible_box" style="z-index: 7000">
<a class="overlay" style="cursor:auto;"></a>
<object type="application/x-shockwave-flash" data="http://s-maof.com/stuff/tachlit-150x150.swf" width="150" height="150">
<param name="movie" value="http://s-maof.com/stuff/tachlit-150x150.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="loop" value="false" />
</object>
</div>
和CSS:
.invisible_box {
height: 75px;
margin-bottom: 5px;
position: relative;
width: 150px;
}
.overlay {
background: none repeat scroll 0 0 white;
display: block;
height: 75px;
left: 0;
opacity: 0;
position: absolute;
top: 0;
width: 150px;
z-index: 10000;
}