小编Sar*_*nan的帖子

用jQuery控制iframe高度

我使用jQuery来控制iframe的高度.

jQuery("iframe",top.document).contents().height();  
Run Code Online (Sandbox Code Playgroud)

这在iframe的高度增加时有效.当高度降低时,它不起作用.它仅返回旧值.为什么会这样?

html iframe jquery

20
推荐指数
2
解决办法
8万
查看次数

Z-Index在IE7中不起作用

我在删除按钮单击时创建了对话框.它覆盖了父Div.

它在IE 7以外的所有浏览器中工作.我在对话框和div中提到了Css.

dialog_box {
width:219px;
height:100px;
background-image:url(../images/preference/popup.png); background-repeat:no-repeat;
padding:10px;
position:absolute;
right:-10px;
z-index:50;
overflow:hidden;
}

Div{
border:solid 1px #ffffff;
padding:10px;
padding-left:30px;
padding-top:10px;
padding-bottom:10px;
position:relative;
text-align:left;
}
Run Code Online (Sandbox Code Playgroud)

知道为什么会这样吗?

css internet-explorer

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

css ×1

html ×1

iframe ×1

internet-explorer ×1

jquery ×1