索菲亚呀吧 关注:1贴子:522
  • 1回复贴,共1

【2015/01/07】JS控制css样式

只看楼主收藏回复

1.变量名.style.width = 100 + "px";
2.变量名["style"]["width"] = 100 + "px";
3.变量名.style.cssText = "width:100px;Height:100px;"
依然:二楼放链接


IP属地:北京1楼2015-01-07 09:52回复
    IP属地:北京2楼2015-01-07 09:53
    回复