【发布时间】:2013-01-01 00:16:54
【问题描述】:
我的页面中有很多表格。一些表具有内联定义的 Width 属性 -
style="width:100%; ..."
我需要得到所有这些表。 我试过了
$('.Forum_Container table').each(function () {
var $this = $(this);
if ($this.style != undefined) {
if ($this.style.width == '100%') {
...
}
} else {
...
}
});
但是 $this.style 总是未定义的。什么会导致这个问题?
【问题讨论】: