html5 jrxml 怎么写img添加图片

img

img


怎么添加这个把这个logo添加在顶端

你这是两张图(一张下面的书,一张logo),想要把logo放在书的指定位置是吗
你可以把这两张图都放一个div里,然后都设置绝对定位,就可以调整两张图的位置和大小了

img

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
        .main{
            width: 200px;
            height: 200px;
            position: relative;
        }
        .bg{
          position: absolute;
              left: 0;
              top: 0;
              width: 100%;
              height: 100%;
        }
        .logo{
            position: absolute;
            left: 100px;
            top: 50px;
            width: 40px;
            height: 40px;
        }
        </style>
    </head>
    <body>
        <div class="main">
            <img class="bg" src="https://img0.baidu.com/it/u=1718241065,2019855389&fm=26&fmt=auto"/>
            <img class="logo" src="https://img0.baidu.com/it/u=2201225864,2449795080&fm=26&fmt=auto"/>
        </div>
        
    </body>
</html>

加个 img 标签 然后 src 图片地址不行吗