1.flex布局中justify-content/align-items: end;iOS不生效问题 // 把end 改为 flex-endjustify-content: flex-end;alig
// 把end 改为 flex-endjustify-content: flex-end;align-items: flex-end;
.multiWrap { Word-wrap: break-word; display:-WEBkit-box; overflow:hidden; text-overflow:ellipsis; word-wrap:break-word; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
<div style='display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;line-clamp: 3;overflow: hidden;height: 120rpx;'>{{富文本内容}}</div>
// 提取富文本文字+长度截取function truncatehtml (htmlText, limit, indicator) { var tempDiv = document.createElement('div') tempDiv.innerHTML = htmlText var text = tempDiv.textContent || tempDiv.innerText || '' if (text.length > limit) { text = text.substring(0, limit) + (indicator || '...') } return text}.multiWrap { word-wrap: break-word; display:-webkit-box; overflow:hidden; text-overflow:ellipsis; word-wrap:break-word; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
来源地址:https://blog.csdn.net/qq_42905523/article/details/130400293
--结束END--
本文标题: 前端vue/uniapp —— 兼容ios与安卓问题
本文链接: https://lsjlt.com/news/400191.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-01-21
2023-10-28
2023-10-28
2023-10-27
2023-10-27
2023-10-27
2023-10-27
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0