摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title></title></head><style> .font18{ font-size:.28rem; width:2rem; border:1px solid red 阅读全文
posted @ 2018-11-16 17:03 简单就好zyx 阅读(332) 评论(0) 推荐(0) 编辑
摘要: $(window).resize(function ()// 绑定到窗口的这个事件中 { var whdef = 100/1920;// 表示1920的设计图,使用100PX的默认值 var wH = window.innerHeight;// 当前窗口的高度 var wW = window.inn 阅读全文
posted @ 2018-11-16 10:39 简单就好zyx 阅读(2694) 评论(0) 推荐(0) 编辑
摘要: text-overflow:ellipsis;兼容性:所有主流浏览器都支持。 text-overflow: clip|ellipsis|string; clip(修剪文本) ellipsis(添加省略号) string(使用给定的字符串来代表被修剪的文本) 阅读全文
posted @ 2018-11-16 09:37 简单就好zyx 阅读(128) 评论(0) 推荐(0) 编辑