怎么将DIV的背景重新变为透明了? 没有知道?不要FILTER: alpha(OPACITY=50);这样它里面的图片也会被透明的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <div style="width:50;font:20;z-index:2;background-color:#ff0000;position:absolute;" onclick="this.style.backgroundColor=''">abc</div><div style="z-index:1;top:5;position:absolute;">asdgsdfasdfasdfasdfasdf</div> liuzxit的主意不错,去掉背景色即可<body bgcolor=green><div style="width:50;font:20;z-index:2;background-color:#ff0000;position:absolute;" onclick="this.style.backgroundColor=''">abc</div> 解决了吗? 你门实验过了吗?你们的办法不行!不设置背景就是透明的! meizz说的对,我现在本来不是透明的,要在runtime时动态设置为透明的。我已经研究出来了,正确的做法:div_1.style.removeAttribute('backgroundColor');搞定了! 哦, 哦,原来..backgroundColor = ''是可以的,哈哈,对不起,是我自己弄错了! 使用ueditor第一次加载慢的问题 连接css的link标签在html中的位置 联系我 请问这是不是一个bug关于JavaScript创建下拉列表的问题 window.showModalDialog打开的子窗体想刷新父窗体,能不能做到重复刷新? Object,Object.prototype, Function,Function.prototyp谁是老大? 一个很具挑战性的javascript编码问题? 关于DOM的奇怪现象!!! Access is denied! 复选框产生列表的问题。 這個函數怎麼出錯了 在JAVASCRIPT里面,难道对象也算作是数据类型的一种吗?
<div style="z-index:1;top:5;position:absolute;">asdgsdfasdfasdfasdfasdf</div>
<body bgcolor=green>
<div style="width:50;font:20;z-index:2;background-color:#ff0000;position:absolute;" onclick="this.style.backgroundColor=''">abc</div>
div_1.style.removeAttribute('backgroundColor');搞定了!