分享按钮
摘要: JS中style属性JS中style属性现在我需要对这个标签赋值,其内容为: 1、需要显示的字为“HELLO WORLD”; 2、span的 background-color : red ,另外还要:border:1px solid #333333;cursor:hand; 我需要在<script></script>内把他们赋值,请问怎么写呢?难道要: document.getElementById("a").style.background="red"; 来一项一项的写? 能不能一下子把style写完啊,怎么写啊? 解决办法:1 阅读全文
posted @ 2011-08-25 20:11 草莓在努力 阅读(440) 评论(0) 推荐(0) 编辑