var id=this.id;
stateList.style.display='none';
stateTxt.innerHTML=getByClass('stateSelect_text',id)[0].innerHTML;
loginStateShow.className=' ';
loginStateShow.className='login-state-show '+id;
stateList.style.display='none';
stateTxt.innerHTML=getByClass('stateSelect_text',id)[0].innerHTML;
loginStateShow.className=' ';
loginStateShow.className='login-state-show '+id;
2016-10-19
已采納回答 / 蒙其D凡
給你舉個例子: 就拿margin-left講吧!如果有一個盒子靠邊放在桌子上, 如果設置它的margin-left為2px, 那就是把這個盒子移到 ?離 ?桌子邊緣2個大小的位置,如果設置為0就會向邊靠攏也就是剛好挨著邊,如果設置-2px呢 就再往左邊移動2px
2016-10-19
這里有詳解,大家可以去看看http://www.yewu233.com/index.php/archives/36/
2016-10-18