我的的通过CSS一个简单的绝对定位,包括z-index的 HTML:CSS Propertie变化的onclick
<div id="one"> test </div>
<div id="two"> test </div>
<div id="three"> test </div>
CSS:
#one{
height: 200px;
width: 150px;
background: #a8d14f;
position: absolute;
left: 10px;
top: 30px;
z-index: 10;
}
#two{
height: 200px;
width: 150px;
background: #f97273;
position: absolute;
left: 150px;
top: 30px;
z-index: 15;
}
#three{
height: 200px;
width: 150px;
background: #43b8b0;
position: absolute;
left: 300px;
top: 30px;
z-index: 12;
}
需要: 的OnClick改变一些CSS属性对于选定的位置,z-index,背景
你甚至还看过http://api.jquery.com/css/吗? – 2012-04-25 13:00:11
[你到目前为止尝试过什么?](http://mattgemmell.com/2008/12/08/what-have-you-tried/) – Jakub 2012-04-25 13:00:39
我在JavaScript或jQuery中使用jQuery的总数为n – 2012-04-25 13:01:24