<style type="text/css">
#onclickwe{
width:300px;
height:60px;
background:#0033CC;
}
</style>
<script language="javascript">
document.onclick=function(){
alert(document.getElementById("onclickwe").currentStyle.backgroundColor);
}
</script> <div id="onclickwe" >sadaskldlka </div> 楼主给分吧!!!
#onclickwe{
width:300px;
height:60px;
background:#0033CC;
}
</style>
<script language="javascript">
document.onclick=function(){
alert(document.getElementById("onclickwe").currentStyle.backgroundColor);
}
</script> <div id="onclickwe" >sadaskldlka </div> 楼主给分吧!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货