11 2019 档案

摘要:单行溢出显示省略号: white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 多行溢出显示省略号: display: -webkit-box !important; overflow: hidden; text-overflow 阅读全文
posted @ 2019-11-28 11:16 X1aoYE 阅读(133) 评论(0) 推荐(0)
摘要:1.自动换行 <div style="widht:100%;height:100%;word-wrap: break-word">啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</div> 2.限制宽高度 <div style="widht:100px;height:100px;overflow:hi 阅读全文
posted @ 2019-11-26 17:15 X1aoYE 阅读(243) 评论(0) 推荐(0)
摘要:项目中需要对每一个民宿里的每一个房间都需要popup弹出层来介绍每一个房间,房间数据都在一个接口(此民宿)上。 主要代码如下: HTML: <view v-for='(item,index) in roomDetail' :key='index'> <text @tap="togglePopup(' 阅读全文
posted @ 2019-11-19 11:04 X1aoYE 阅读(1139) 评论(0) 推荐(0)
摘要:今天开发日历插件时,遇到了以下问题: 因为需要在父组件的onLoad里加载接口从而得到每一天的房间数据,然后将数据存进小程序缓存。 接着在子组件里 获取小程序缓存来得到父组件传来的房间数据,在子组件里需要先在created里得到一开始的数据,所以需要给created里的代码加上setTimeout来 阅读全文
posted @ 2019-11-18 17:33 X1aoYE 阅读(4290) 评论(1) 推荐(0)
摘要:比如认识成都: <view style="display: flex;align-items: center;"> <text class="cityVoV2Three" @click="goToCity">认识{{ cityVo.name }}</text> </view> 要有一个父元素抱着行内 阅读全文
posted @ 2019-11-15 18:47 X1aoYE 阅读(706) 评论(0) 推荐(0)
摘要:定宽,左右margin为auto display:flex; justify-content:center; flex-direction:row 父元素设置text-align:center,使内部的行盒、块盒居中(文本) 相对定位元素,left:0;right:0;定宽;左右margin:aut 阅读全文
posted @ 2019-11-15 10:55 X1aoYE 阅读(168) 评论(0) 推荐(0)
摘要:text就是你要穿的URL,例如: this.html 传给富文本插件 就可以了。 阅读全文
posted @ 2019-11-01 14:42 X1aoYE 阅读(611) 评论(0) 推荐(0)