我正在尝试实现压缩和解压缩文件的程序.我想要做的就是压缩文件(fileName.fileExtension),其名称为fileName.zip,并在解压缩时再次将其更改为fileName.fileExtension.
在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)