-1

是否可以在该模型上创建布局?

必要的行为

4

1 回答 1

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");
});
于 2012-05-11T11:29:59.420 回答