摘要:
不要使用absolute定位,用fixed就行。然后 background:rgba(0, 0, 0, 0.5); position:fixed; z-index: 100; left:0; right:0; top:0; bottom:0; 阅读全文
2017年6月5日
2017年6月3日
摘要:
$(function() { // 任何需要执行的js特效 $("table tr:nth-child(even)").addClass("even"); }); 阅读全文
摘要:
overflow: hidden; //超出部分隐藏 white-space: nowrap; //不换行 text-overflow:ellipsis; //文字超出部分用省略号表示 以上为单行超出 多行的话,可以用 overflow: hidden; /*文字超出用省略号*/ text-over 阅读全文
摘要:
1,如果直接用border实现的,直接使用list(边线所在元素的类名) list:last-child{border:0;} 2,如果是使用伪元素实现的,list:last-child:before{border:0} 阅读全文
2017年5月31日
摘要:
<a href="tel:7283121239">7283121239</a> 阅读全文
摘要:
1,两个三角形重合,小的覆盖大的,未覆盖的地方就是三角形的两条边 阅读全文
摘要:
在js中加一个空的touchstart函数 $(function(){ document.body.addEventListener('touchstart',function(){ }); 或在<body ontouchstart=""> 阅读全文
摘要:
$("#id").find(".classname") 选择id为xx下的类名为xx的元素 toggle $(this).next(".classname").toggle() 点击当前元素时,它的下一个名为xx的元素会显示,再次点击会隐藏 toggleClass $(this).find(".up 阅读全文
摘要:
给button添加一个outline:none; 阅读全文