0

需要将框架高度更改为页面内容。在框架中将是一个注释块。抱歉 4 我的英语:P 问题在这里

<script>
$(document).ready(function(){
$(".group1").colorbox({rel:'group1'});
$(".group2").colorbox({rel:'group2', transition:"fade"});
$(".group3").colorbox({rel:'group3', transition:"none", width:"800px", height:"75%"});
$(".group4").colorbox({rel:'group4', slideshow:true});
$(".iframe").colorbox({iframe:true, width:"1057px", height:"750px"});
$("#click").click(function(){ 
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text;
return false;
});
});
</script>

<a class='iframe' href="Gallery/complete/photo0001489_61132.html"><img src="Gallery/complete/min/1.jpg" width="200px"></a>
4

1 回答 1

0

不太确定您要的是什么,但是如果您使用的是 jQuery,这应该可以解决问题:

 $('.element').height($('.other-element').height());

你也可以

 $('.element').css({
'height':$('.other-element').height()
});
于 2012-11-01T10:33:56.503 回答