返回 我的第一个js...... 登陆

我的第一个js事件

李木子 2019-06-22 21:38:13 170

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>事件</title>

<style type="text/css">

.q{

width:100px;

height:100px;

border:1px solid #ccc;

}

.w{

width:100px;

height:100px;

border:1px solid #ccc;

}

.e{

width:100px;

height:100px;

border:1px solid #ccc;

}

</style>

</head>


<body>

<script type="text/jscript">

function bs(x){

x.style.background="pink"

x.style.borderRadius="50px"

}

</script>


<div class="q" onclick="bs(this)"></div>

<br />

<br />

<br />

<div class="w" onmouseover="bs(this)"> </div>

</body>

</html>


最新手记推荐

• 用composer安装thinkphp框架的步骤 • 省市区接口说明 • 用thinkphp,后台新增栏目 • 管理员添加编辑删除 • 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消 回复 发送
  • PHP中文网