//jQuery的方法
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jQuery</title>
<script src="jquery.js"></script>
<style>
div{
height: 23px;
height: 30px;
}
</style>
</head>
<body>
<input type="button" value="设置边框" id="btnOne">
<input type="button" value="设置文本" id="btnTwo">
<hr>
<div></div>
<br/>
<div></div>
<br/>
<div></div>
<script>
$(document).ready(function () {
$('#btnOne').click(function () {
$('div').css('border','13px solid blue');
});
$('#btnTwo').click(function () {
$('div').text('苍天饶过谁');
});
});
</script>
</body>
</html>