【发布时间】:2009-11-17 17:00:05
【问题描述】:
正如问题所暗示的,我可以在 css 文件中添加一个 JQuery 脚本作为表达式吗?或者类似的东西:
.parent{
background-color: pink;
position:relative;
width: 100%;
}
.child{
position: absolute;
background: transparent url('./background.gif') no-repeat top right;
/*height: 100%;*/
height: expression($(this).parent.height()+'px');
width: 12px;
}
这个脚本的整个想法是解决 IE6 中 100% 的 div 高度。
【问题讨论】:
标签: jquery css expression