国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

我的Js事件

Original 2019-03-17 12:46:17 174
abstract:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Js事件</title> <style type="text/css"> .cls{ width: 
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>Js事件</title>
	<style type="text/css">
		.cls{
			width: 100px;
			height: 100px;
			border: 1px solid #ccc;
		}
	</style>
	<script type="text/javascript">
		// 獲取焦點(diǎn)事件
		function myfocus(s){
			s.style.background = 'pink';
		}
		// 失去焦點(diǎn)事件
		function myblur(s) {
			s.style.background = 'none';
		}

		// 鼠標(biāo)移入事件
		function myOver(s) {
			s.style.borderRadius = '50px'
			s.style.background = 'red';
		}

		function myOut(s){
			s.style.background = 'blue';
		}
	</script>
</head>
<body>
	姓名:
	<input type="text" onfocus="myfocus(this)" onblur="myblur(this)" name="">

	<div class="cls" onmouseover="myOver(this)" onmouseout="myOut(this)"></div>
</body>
</html>


Correcting teacher:查無(wú)此人Correction time:2019-03-18 09:28:24
Teacher's summary:完成的不錯(cuò),js事件有很多,記住常用的幾個(gè)就行了。繼續(xù)加油。

Release Notes

Popular Entries