ITeye博客

css sometime cause the defaule as we think that is done by js

tsailer · 2011-08-18 17:02 · CSS · Web前端 · Markdown

.c{height: height: 1%;}

导致

var h2 = $(".c").outerHeight(true);
alert(h2);//弹出2

然后我改为

.c{height:auto;}
var h2 = $(".c").outerHeight(true);
alert(h2);//弹出正常

因为我的原页面是aaa.html,参考页是aaa_test.html 页面中都有

<ul class="c">

只是aaa.html和aaa_test.html引用的样式文件不同,我刚开始一直认为它们相同...

以下跟主题无关

/^[\d]{6,12}$/ height:expression(parseInt(this.height) < 15 ? "15px" : "200px");

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。