close
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
	<style type="text/css">
		
	</style>
</head>
<body>
	<img src="https://api.fnkr.net/testimg/200x200/00a/fff/?text=A">
	<img src="https://api.fnkr.net/testimg/200x200/0a0/fff/?text=B" id="b">
	<img src="https://api.fnkr.net/testimg/200x200/a00/fff/?text=C">
	<br>
	<button id="dn">display:none</button>
	<button id="op">opacity:0</button>
	<button id="vh">visibility:hidden</button>
	<button id="reset">重設</button>
	<script type="text/javascript">
		$('#dn').click(function(){
			$('#b').css('display','none')
		});
		$('#op').click(function(){
			$('#b').css('opacity','0')
		});
		$('#vh').click(function(){
			$('#b').css('visibility','hidden')
		});
		$('#reset').click(function(){
			$('#b').css({
				'display':'inline',
				'opacity':'1',
				'visibility':'visible'
			});
		});
	</script>
</body>
</html>
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Jerry 的頭像
    Jerry

    Bug倉庫 // 程式日記

    Jerry 發表在 痞客邦 留言(0) 人氣()