返回JQuery的......登陆

JQuery的基础语法

天腾²⁰¹⁹2019-03-08 13:47:43232

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>jquery基础语法</title>

<script src="jquery-3.3.1.min.js"></script>


<style>

.box{ width: 200px;

height: 200px;

border-radius: 100px;

background: blueviolet;

border: 1px solid red;

text-align: center;

line-height: 200px;

}

button{width: 100px;height: 30px;border: none;background:#ffc09f;color: darkblue;border-radius: 5px;}

</style>


</head>

<body>

<script>

//$(选择器).actoin()

$(document).ready(function(){

$(".box").hide()

$("button").click(function(){

$(".box").show()

})

})

</script>

<button>点我呀</button>

<div class="box"> 大家好,才是真的好! </div>


</body>

</html>


最新手记推荐

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

全部回复(0)我要回复

暂无评论~
  • 取消回复发送