这工作正常,在FF和IE9,但无法在IE7和8DIV(页脚)切换后不被向下推到IE
我有一个里面含有一种形式两个隐藏的div。一旦你点击一个按钮,正确的格式将显示在下面。所有这些工作正常,但在IE7和8中,页脚将与表单重叠,并且不会被切换事件压低。
这里是我的html(减少):
<div class="row" id="contactesp">
<div class="twelve columns">
<!-- Contact Form 7 plugin shows the form here -->
</div>
</div>
<div class="row" id="contactmund">
<div class="twelve columns">
<!-- Contact Form 7 plugin shows the form here -->
</div>
</div>
<!-- Footer -->
<footer role="contentinfo" id="content-info">
<div class="row">Content here</div>
</footer>
我的CSS(有些):
#content-info {
background-color: #1C3F94;
clear: both;
color: #FFFFFF;
float: none;
margin: 20px -20px 0;
padding: 0 4%;
display:block;
}
#contactesp, #contactmund {
display: none;
height: auto;
overflow: hidden;
}
我还添加溢出:隐藏的形式,但无济于事。 这里是我的JQuery:
jQuery(document).ready(function ($) {
$('.enesp').on('click',function(){
$('#contactmund').hide();
$('#contactesp').toggle();
});
$('.enmund').on('click',function(){
$('#contactesp').hide();
$('#contactmund').toggle();
});
});
该网站是这里的完整代码:http://www.institutoespanol.net/contacto/,问题出现在你点击任何按钮的地图盒中。
删除明确:既和float:没有从#内容信息 – supersaiyan
同样的事情发生 –
@SACHIN你应该在这里讨论,而不是要他送 –