欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

JS中style屬性

 更新時間:2006年10月11日 00:00:00   作者:  
現(xiàn)在我需要對這個標(biāo)簽賦值,其內(nèi)容為:
1、需要顯示的字為“HELLO WORLD”;
2、span的 background-color : red ,另外還要:border:1px solid #333333;cursor:hand;

我需要在<script></script>內(nèi)把他們賦值,請問怎么寫呢?難道要:
document.getElementById("a").style.background="red"; 來一項一項的寫?
能不能一下子把style寫完啊,怎么寫???
解決辦法:
1、先定義一個CSS規(guī)則,然后this.className=''
2、document.getElementById("a").style.cssText="border-collapse:collapse;border-spacing:1;border:1 solid #0B2565;background-color:white;color:black;"

相關(guān)文章

最新評論