为什么我的页面会自动刷新?

时间:2015-07-16 16:28:08

标签: html

我有一个包含以下HTML的页面。它保持清爽,我不希望它。为什么要这样做?如何阻止它呢?

<!DOCTYPE html>
<html>
<head>
  <title>Yet another exif viewer from Phil Harvey's exiftool</title>
  <meta charset="UTF-8">
  <meta name="description" content="Yet another online exif viewer from Phil Harvey's exiftool. This is an online image metadata viewer">
  <meta name="keywords" content="EXIF,XMP,metadata,gif,jpg,adobe">
  <meta name="author" content="Guinsly Mond">
  <meta http-equiv="refresh" content="10">
    <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/cerulean/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  <script type="text/javascript" src="/static/js/bootstrap-filestyle.js"> </script>
</head>
<body>
<div class="container">
  <div class="row">
    <div class="col-lg-10 col-lg-offset-1 well">
     <h1>Upload your Image <small style="font-size:45%;">Please make sure that your file name is display in the input file</small></h1>
  <form method="post" enctype="multipart/form-data" action="/upload">
    <input type="file" class="filestyle" name="file" data-buttonName="btn-primary" placeholder="imge">
    <div class="text-center">
    <input type="submit" value="Submit" class="btn btn-info btn-sml" style="margin-top:10px;">
    </div>
  </form>    
    </div>
  </div>
</div>
</body>
</html>

1 个答案:

答案 0 :(得分:1)

页面上有一个元标记,告诉它每10秒刷新一次。删除以下行:

<meta http-equiv="refresh" content="10">