2012-11-01 276 views
0

需要将框架高度更改为页面内容。 在框架中将是一个评论块。 对不起4我的英语:P 问题是HEREiFrame高度调整大小

<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> 
+1

请形容贵问题文字或带有屏幕截图的文档,因为一旦publem被修复,提供的链接无法帮助未来的访问者理解这个问题。 – Spontifixus

回答

0

不太清楚你问什么,但这应该如果你正在使用jQuery做的伎俩:

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

,你也可以做

$('.element').css({ 
'height':$('.other-element').height() 
}); 
+0

http://iceimg.com/i/cc/28/8f47c67bfb.jpg –

+0

@ user1791020不错的女孩:D ..开玩笑..据我了解你应该尝试我的代码**。在你的情况下元素**是* * iframe **元素,那么你也可以使用css ** overflow:hidden; **如果你不想显示滚动条 – sbaaaang