网页图片+文字并排显示效果

1、效果图:

2、源码:

<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">
    <title>Document</title>
</head>
<style>
    .sharearea{
        width:320px;
        height: 380px;
        position: relative;
        border: 1px solid #e9e9e9;
        color:#333;
        font-size: 10px;
    }
    .tt{
        margin-top: 10px;
        margin-left: 10px;
        font-size: 14px;
    }
    .bold{
        font-weight: bold;
    }
    .center{
        position: absolute;
        text-align: center;
        top: 35%;
        width: 100%;
    }
    .ico{
        border-radius:42px;
        border: 1px solid #e9e9e9; 
        transform: scale(0.8);
        vertical-align: middle;
        display: inline-block;
    }
    .dashed{
        color: #999999;
        font-size: 14px;
        display: inline-block;
        margin-top: 15px;
    }
    .mid{
        width: 130px;
        text-align: left;
        display: inline-block;
        vertical-align: middle;
    }
</style>
<body>
    <div class="sharearea">
        <div class="tt bold">分享安装记录</div>
        <div class="center">
            <div>
                <img class="ico" src="图片路径">
                <span class="mid">您的分享,还没有任何用户在设备上安装。</span>
            </div>
            <span class="dashed">分享给建筑同行,更容易获得安装奖励!</span>
            
        </div>
    </div>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值