显示有误

博客园 首页 新随笔 联系 订阅 管理

2016年9月19日 #

摘要: js代码: function isMouseLeaveOrEnter(e, handler) { var reltg=e.relatedTarget?e.relatedTarget:e.type=='mouseout'?e.toElement:e.fromElement; while (reltg 阅读全文
posted @ 2016-09-19 16:26 显示有误 阅读(1551) 评论(0) 推荐(0) 编辑

摘要: <!doctype html><html><head> <title></title><meta charset="UTF-8"><style> div,p,h1,h2,h3,h4,h5,h6,ul,a,{margin:0;padding:0;} .box{ width:100%; height:5 阅读全文
posted @ 2016-09-19 16:26 显示有误 阅读(129) 评论(0) 推荐(0) 编辑

摘要: 适用于内核为webkit的浏览器: display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;兼容大多数浏览器,但是最后一行无论文本是否溢出都会出现省略号,需配合js实现 p 阅读全文
posted @ 2016-09-19 15:51 显示有误 阅读(203) 评论(0) 推荐(0) 编辑