css
yqiu edited this page Jun 13, 2017
·
4 revisions
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
width:210px;
// 多行不换行
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
display: -webkit-box;
display: -webkit-flex;
display: flex;
display: -ms-inline-flexbox;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
a, img {
/* 禁止长按链接与图片弹出菜单 */
-webkit-touch-callout: none;
}
html, body {
/* 禁止选中文本(如无文本选中需求,此为必选项) */
-webkit-user-select: none;
user-select: none;
}