追格圈子小程序推荐内容列表描述信息发布时默认是单行,超出隐藏,有些用户希望能够显示多行文字,其实通过简单修改css即可实现,在这里我们来看看如何调整
打开main.scss文件,搜索 .jiangqie-base-intro
.jiangqie-base-intro {
height: 2rem;
line-height: 1.5rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 30rpx;
font-weight: $Q-rich-text-weight;
}
调整为
.jiangqie-base-intro {
max-height: 4.5rem;
/* --- max-height 设置最大高度,是line-height的几倍即为几行,这里是3行 --- */
line-height: 1.5rem;
margin-bottom: 20rpx;
/* ---margin-bottom 用于调整与下方内容的间距 --- */
overflow: hidden;
text-overflow: ellipsis;
font-size: 30rpx;
font-weight: $Q-rich-text-weight;
}
如下图,通过简单调整css即可实现,多行显示
-
wx.onBatteryInfoChange 监听电池信息变化事件 APIwx.onBatteryInfoChange 为微信小程序监听电池信息变化事件 API,,目前只支持监听省电模式的切换,目前仅 iOS 端支持。
-
live-pusher 实时音视频录制媒体组件live-pusher 微信小程序实时音视频录制媒体组件,v2.9.1 起支持同层渲染。需要用户授权 scope.camera、scope.record。
-
open-container容器转场动画组件open-container为微信小程序容器转场动画组件。
-
追格小程序V2.5.0更新发布追格小程序V2.5.0版本的更新,我们没给大家添太多新花样,主要是把“内功”练好了。我们认真检查了上一版里那些组件之间的小摩擦,一点点地调整、优化,搞定了超过40多个小地方。这样一来,小程序跑起来就更顺畅了,大家用起来也会感觉更舒服、更顺手。这次虽然没大张旗鼓,但确实是让产品站得更稳、更可靠了。
-
wx.setStorage 将数据存储在本地缓存中指定的 key 中微信小程序wx.setStorage 将数据存储在本地缓存中指定的 key 中。会覆盖掉原来该 key 对应的内容。除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。
-
微信小程序wx.getExtConfig 的同步版本 APIwx.getExtConfig 为微信小程序的同步版本 API。
暂无评论,抢个沙发...