04_css 定位 top right bottom left 清除定位方法

  场景: 组件库中部分样式 定位属性需要清除, 并添加自己设定的新定位属性

<style scoped="scoped" lang="less">
    /deep/ .van-popup--top{
        top: 0 !important;
	left: unset ;
	right: 0 !important;
	width: 9em !important;
    }
</style>
		        

  如上图所示: UI组件库中设置默认定位为 左定位, 想清除左定位并设置为右侧定位: 用 unset 属性即可 !

posted @ 2020-01-16 14:45  何少旭  阅读(2402)  评论(0编辑  收藏  举报