[英]Internet explorer problem
I am creating an aspx page which appears fine in mozilla firefox but does not look so great in Internet explorer. 我正在创建一个aspx页面,在mozilla firefox中显得很好但在Internet Explorer中看起来并不那么好。 In Mozilla its appearing something of this format:
在Mozilla中,它出现了这种格式:
<form>
some stuff
<div class="left">
<div class="right">
</form>
but looking at the source code of the page loaded in IE 8, it looks sometbhing like this: 但是看看IE 8中加载的页面的源代码,它看起来像这样:
<form>
some stuff
</form>
<div class="left">
<div class="right">
What approach should I take to start fixing it? 我应该采取什么方法来开始修复它? So far I've tried playing around with the css and fixing paddings and margins but nothing works :/
到目前为止,我已经尝试过使用CSS并修复填充和边距,但是没有任何效果:/
Thanks so much C 非常感谢C
I think the OP's code is just pseudocode to illustrate his point. 我认为OP的代码只是伪代码来说明他的观点。 If the left and right divs are floated, you might need to add a clearing element after them, to make the form expand around it.
如果左右div浮动,则可能需要在其后添加清除元素,以使表单围绕其展开。
<form>
<div class="left">Stuff</div>
<div class="right">Stuff</div>
<br style="clear: both;" />
</form>
There are better methods than <br style="clear:both; />
, but you can try it to see if it fixes your problem. 有比
<br style="clear:both; />
更好的方法,但是您可以尝试看看它是否可以解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.