码迷,mamicode.com
首页 > 移动开发 > 详细

css解决ios 绑定click事件不触发问题

时间:2017-11-29 11:38:14      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:size   2.0   int   cursor   doctype   text   click   on()   highlight   

<!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事件不触发问题

标签:size   2.0   int   cursor   doctype   text   click   on()   highlight   

原文地址:http://www.cnblogs.com/loewe0202/p/7918981.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!