纯迩:最纯净的距离 2023-03-17 11:07 采纳率: 54.5%
浏览 30
已结题

关于#html#的问题:怎么可以让标签和文本框在图片右侧

img


.rside{
width:1200px;
height:600px;
top:42px;
left:200px;
bottom:0;
position:absolute;
background:linear-gradient(60deg,gray,white);
}
.center{
width:1000px;
height:120px;
background:linear-gradient(50deg,gray,white);
top:50px;
left:80px;
position:relative;
}

.center img{
width:100px;
height:100px;
border-radius:50%;

}
.center input{
top:5px;
display:flex;
}
<div class="rside">
<label>个人中心</label>
<div class="center" >
<img id="avatar" src="images/01.jpg"/>
<input type="text" id="name"/>
<a><label>收货地址</label></a>
<a><label>优惠卷</label></a>
</div>
<div class="message"></div>
<div class="collect"></div>
</div>



怎么可以让标签和文本框在图片右侧?

  • 写回答

3条回答 默认 最新

  • 简效 2023-03-17 11:17
    关注
    
        <div class="rside">
        <label>个人中心</label>
        <div class="center" >
            <img id="avatar" src="images/01.jpg"/>
            <div>
                <input type="text" id="name"/>
                <a><label>收货地址</label></a>
                <a><label>优惠卷</label></a>
            </div>
            
        </div>
        <div class="message"></div>
        <div class="collect"></div>
        </div>
    
            .rside{
            width:1200px;
            height:600px;
            top:42px;
            left:200px;
            bottom:0;
            position:absolute;
            background:linear-gradient(60deg,gray,white);
            }
            .center{
            width:1000px;
            height:120px;
            background:linear-gradient(50deg,gray,white);
            top:50px;
            left:80px;
            position:relative;
            display: flex;
            }
             
            .center img{
            width:100px;
            height:100px;
            border-radius:50%;
             
            }
            .center input{
            top:5px;
            display: block;
            }
    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 3月28日
  • 已采纳回答 3月20日
  • 创建了问题 3月17日