css居中
兰羽馨
写代码不能有情绪
展开
-
微信小程序picker组件只能部分区域才触发问题
我们在选用微信小程序的组件的时候picker组件只能点击有字的部分才会触发那么我们就可以在picker组件上加下面的样式:position: relative;在picker的view里面添加(高度你随意)display: flex;width: 100%;height: 70rpx;justify-content: center;position: absolute;top: 0;left: 0;...原创 2020-05-09 10:13:59 · 1089 阅读 · 0 评论 -
各种盒子居中
第一种:margin:0 auto;.main{width:300px;height:300px;margin:300pxauto;background-color:red;}<divclass="main"></div>/*使用...原创 2019-10-23 23:30:02 · 106 阅读 · 0 评论