rah*_*789 2 javascript css jquery
在jQuery(或JavaScript)中为DOM中的元素获取样式属性"position"的正确标记是什么?
例:
<div id="Parent">
Parent Element
<ul class="child">
<li>
<p>inner child elements</p>
</li>
</ul>
</div>
Run Code Online (Sandbox Code Playgroud)
#Parent {
position: relative;
}
.child {
position: absolute;
}
Run Code Online (Sandbox Code Playgroud)
$(function() {
// What to type here to get "style attribute position" of say #Parent?
})
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6767 次 |
| 最近记录: |