<style lang="less" scoped>
@import "../../../assets/styles/varibles.less";
.header {****
.header-content {
width: 7.3rem;
height: 1.6rem;
margin: 0 auto;
margin-bottom: -1rem;
background: @bgc-yellow;
display: flex;
.header-left {
width: 1.58rem;
height: 100%;
font-size: 0.8rem;
text-align: center;
color: #fff;
float: left;
}
.header-search {
flex: 1;
background-color: #fff;
border-radius: 0.8rem;
height: 0.62rem;
font-size: .28rem ;
line-height: .62rem;
float: left;
white-space: nowrap;
padding-left: 0.15rem;
}
.header-right:extend(.header-left) {
width: 0.8rem;
float: right;
}
}
}
</style>
是不是样式冲突了,导致你继承看上去没生效