页面上.box只显示一次,后面刷新不显示。
浏览器新建窗口一次窗口可以打开,再次刷新就不显示。
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title> 浏览器窗口只打开一次 </title>
<script src="https://code.jquery.com/jquery-1.7.2.js"></script>
</head>
<body>
<style type="text/css">
.box{width:100px;height:100px;margin:100px auto;background:#ff6600;}
</style>
<div class="box"></div>
<script>
</script>
</body>
</html>