是否可以在该模型上创建布局?
答案 0 :(得分:1)
HTML
<div class="layout">
<span id="click">Click me</span
<div id="mydiv"></div>
</div>
<强> CSS 强>
.layout {position:relative;height:200px}
#mydiv {width:100px; height:50px;bottom:0}
<强> JS 强>
$("#click").click(function(){
$("#mydiv").css("position", "absolute");
});