加入收藏 - 网站地图 - 网站搜索 -
阅读新闻

CSS里也能写脚本?

[日期:07-25] [字体: ]
<style type="text/css">
.showCSS{
event:expression(
onmouseover = function()
{
this.style.backgroundColor='#f0f0f0'
},
onmouseout = function()
{
this.style.backgroundColor='#ffffff'
}
)
}
</style>
<div class="showCSS">把鼠标放上去试试看!:)</div>


 
评论 】 【 推荐 】 【 打印
上一篇:用相对定位和负向移动完成图片象框阴影
下一篇:网页框架和网页框架集如何工作的