(1)今天學會了用JQuery怎樣獲取、設置樣式的高度和寬度
(2)
eq:
<p style="width:20em;">This is just a test.</p>
width() 取得第一個匹配元素當前計算的寬度值(px)。
示例:
$("p").width();
//設置內容為自拉伸的is
<script type="text/javascript">
$(function () {
var st = $(".VideoNote");
if (st.height() < 378) {
$(".VideoNote").css("height", "379");
}
})
</script>