1. 程式人生 > >css解決ios 綁定click事件不觸發問題

css解決ios 綁定click事件不觸發問題

lib src ios -a aid 綁定 char head htm

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>test</title>
		<style type="text/css">
			.test {
				font-size: 60px;
				text-align: center;
				height: 300px;
				background: red;
				cursor: pointer;
			}
		</style>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	</head>

	<body>
		<div class="test">click me!</div>
		<script type="text/javascript">
			$(document).on("click", ".test", function() {
				alert(1);
			});
		</script>
	</body>

</html>

  

css解決ios 綁定click事件不觸發問題