- <!DOCTYPE html>
- <html lang="zh-cn">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="keywords" content="" />
- <meta name="description" content=" " />
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <title>999</title>
- <link rel="shortcut icon" href="" type="image/x-icon">
- </head>
- <body>
- <style type="text/css">
- *{margin:0; padding:0;} html,body{ width:100%; height:100%;} body{background:#F0EEEF url(background.png) center no-repeat ;} body{background-size:contain;}
- </style>
- </body>
- </html>
复制代码
重庆网友: <style type="text/css">
a{
background: red;
width: 100px;
height: 100px;
display: block;
}
</style>
</head>
<body>
<a ></a>
</body>
</body>
加a标签 或者用a标签做背景
河北网友:谢谢大佬的指教,/bq