首页 > 网站 > WEB开发 > 正文

CSS里也能写脚本?

2024-04-27 13:55:38
字体:
来源:转载
供稿:网友
<style type="text/CSS">
.showCSS{
event:exPRession(
onmouSEOver = function()
{
this.style.backgroundColor='#f0f0f0'
},
onmouseout = function()
{
this.style.backgroundColor='#ffffff'
}
)
}
</style>
<div class="showCSS">把鼠标放上去试试看!:)</div>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表