这里没有flex或者left为什么会向左排列
视频

我的

代码
<template>
<div class="wrapper">
<div class="top">
<div class="top__header">
<div class="iconfont top__header__back"></div>
确认订单
</div>
<div class="top__receiver">
<div class="top__receiver__title">收货地址</div>
<div class="top__receiver__address">北京理工大学国防科技园2号楼10层</div>
<div class="top__receiver__info">
<div class="top__receiver__info__name">瑶妹(先生)</div>
<div class="top__receiver__info__name">18911024266</div>
</div>
<div class=" iconfont top__receiver__enter"></div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'OrderConfirmation'
}
</script>
<style lang="scss" scoped>
.wrapper {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
background-color: #eee;
}
.top {
position: relative;
height: 1.96rem;
background-size: 100% 1.59rem;
background-image: linear-gradient(0deg, rgba(0,145,255,0.00) 4%, #0091FF 50%);
background-repeat: no-repeat;
&__header {
position: relative;
padding-top: .26rem;
line-height: .24rem;
color: #fff;
text-align: center;
font-size: .16rem;
&__back {
position: absolute;
font-size: .22rem;
left: .18rem;
}
}
&__receiver {
position: absolute;
left: .18rem;
right: .18rem;
bottom: 0;
height: 1.11rem;
background-color: #fff;
border-radius: .04rem;
&__title {
padding: .16rem 0 .14rem .16rem;
font-size: .16rem;
color: #333;
line-height: .22rem;
}
&__address {
line-height: .2rem;
padding: 0 .4rem 0 .16rem;
font-size: .14rem;
color: #333;
}
&__info {
padding: .06rem 0 0 .16rem;
}
}
}
</style>6
收起
正在回答 回答被采纳积分+1
1回答





恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星