大佬们,怎么给这这个背景图添加一个超链接?

搬瓦工机场JMS
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4.         <meta charset="utf-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1">
  6.         <meta name="keywords" content="" />
  7.         <meta name="description" content=" " />
  8.         <meta name="renderer" content="webkit">
  9.         <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  10.         <title>999</title>
  11.         <link rel="shortcut icon" href="" type="image/x-icon">
  12. </head>
  13. <body>
  14.     <style type="text/css">
  15.     *{margin:0; padding:0;}        html,body{ width:100%; height:100%;} body{background:#F0EEEF url(background.png) center  no-repeat ;} body{background-size:contain;}
  16.     </style>
  17. </body>
  18. </html>

复制代码

重庆网友:    <style type="text/css">
        a{
            background: red;
            width: 100px;
            height: 100px;
            display: block;
        }
    </style>
</head>
<body>
    <a ></a>
</body>

</body>

加a标签 或者用a标签做背景
河北网友:谢谢大佬的指教,/bq

未经允许不得转载:美国VPS_搬瓦工CN2 GIA VPS » 大佬们,怎么给这这个背景图添加一个超链接?

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏