实现img图片不能被拖动的两种简单方法
draggable="false"
img {
-webkit-user-drag: none;
}
文本溢出处理
//单行
.single{
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
//多行
.more{
overflow:hidden;
work-break: break-all;
text-overflow:ellipsis;
display: -webkit-box !important;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; //指定行数
}
// 利用控制台停止页面的所有js
var id = setInterval(function() {}, 0);
while (id--) clearInterval(id);