html悬浮图片上的超连接

HTML页面上有一个悬浮图片,悬浮在页面的下方。现在需要在这个悬浮图上在增加一个图片,且这个图片有超链接。

img

把悬浮图片改成div,悬浮图片设置为div的背景图片,在div中放个超链接,超链接内放你增加的图片
例子代码如下:(如有帮助,望采纳!谢谢! 点击我这个回答右上方的【采纳】按钮)

<!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>
<style type="text/css">

.box {
    position: fixed;
    left: 50px;
    bottom: 50px;
    width: 200px;
    height: 150px;
    background: url('1.jpg') no-repeat;
}
.box a{
    position: absolute;
    left: 100px;
    top: 30px;
}

</style>
</head>
<body>

<div class="box">
    <a href="https://www.csdn.net">
        <img src="2.png" width="50" height="50" border="0" alt="">
    </a>
</div>

</body>
</html>