摘要:
//检查第元素是否包含 "intro" 类 $("button").click(function(){ alert($("p:first").hasClass("intro")); }); 向第一个 p 元素添加一个类: 移除所有 <p> 的 "intro" 类: 阅读全文
摘要:
p.test1{overflow:hidden;width:11em; border:1px solid #f00;word-break:break-all; //换行规则white-space:pre-wrap; //是否换行,空白序列是否合并text-overflow:ellipsis; //省 阅读全文