![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html
JianZhen✓
不积跬步,无以至千里;不积小流,无以成江海。
展开
-
vue——将页面保存为图片
将页面元素保存为图片原创 2023-01-03 14:51:33 · 4143 阅读 · 0 评论 -
css文本超出两行字-溢出后使用省略号隐藏
width: 70%; height: 5rem; line-height: 2.5rem; text-overflow: ellipsis; word-break: break-all; overflow: hidden; display: -webkit-box; /* autoprefixer: off */ -webkit-box-orient: verti...原创 2022-05-11 18:54:50 · 1646 阅读 · 0 评论 -
使用css样式替代v-html完成回车换行
我们一般是通过正则表达式配合v-html把接口给的回车换行符改成换行标签,今天给大家看一种通过css样式来实现这一效果的例子。text.replace(/([.\n\r]+)/g, '<br/>')"使用v-html <div style="margin-top: 1rem; margin-left: 1rem" v-html="dataSend.text.replace(/([.\n\r]+)/g, '<br/>')"><...原创 2022-04-07 16:49:35 · 1049 阅读 · 0 评论