我有一些代码,以确保这两个具有ID的内容和txtCotent的div是相同的高度。任何想法为什么这个jQuery不会在IE中工作,但在Firefox中工作
<script language = "javascript" src = "js/jquery.js"></script>
<script>
$(document).ready(function() {
var h = $('#wrapContent#').css('height');
$('#content, #txtContent').css('height', h);
});
</script>
任何想法,为什么这不会在IE中工作?这里是链接... http://students.uwf.edu/bmg17/workshop/index.cfm
Bri你实际上有2个div,其内容的ID实际上可能会在jQuery中造成严重破坏。您应该将ID更改为唯一。 – 2011-03-04 22:33:36