固定DIV样式

时间:2022-01-02 06:08:25
  <!doctype html>
  <html>
  <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>固定对联</title>
  <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  <style type="text/css">
  body{margin:0; padding:0;}
  </style>
  </head>
  <body>
  <div style="height:2000px"></div>
  <a style="position:fixed; width: 112px; height: 227px; top: 170px; background-image:url(0.png);left: 50%; margin-left: -612px;
  background-position:initial; background-repeat:no-repeat;"></a>
  </body>
  </html>