xbackgroundchange
广州/网页设计师/11年前/81浏览
版权
xbackgroundchange
js背景转变

<style>
.lchomepro{ width:300px;height:auto;float:left; overflow:hidden; display:inline; }
.lchomepro dl{float:left;}
.lchomepro dd{ width:300px; height:20px; background:#f1f1f1; margin-top:10px;float:left;}
</style>
<div class="lchomepro">
<dl>
<dd id="lchh1" onmousemove="document.getElementById('lchh1').style.cssText='background:#ccc;'" onmouseout="document.getElementById('lchh1').style.cssText='background:#f1f1f1;'">111</dd>
<dd id="lchh2" onmousemove="document.getElementById('lchh2').style.cssText='background:#ccc;'" onmouseout="document.getElementById('lchh2').style.cssText='background:#f1f1f1;'">222</dd>
</dl>
</div>
0
举报
声明
1
分享
评论你的想法~
表情
喜欢TA的作品吗?喜欢就快来夸夸TA吧!
你可能喜欢
登录注册
推荐登录即可同步推荐记录哦
1登录即可加入我的收藏
评论登录即可评论想法
分享分享








































