摘要:
<a href="tel:7283121239">7283121239</a> 阅读全文
2017年5月31日
摘要:
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; 阅读全文
摘要:
1.给表格加边框,再给td加边框,重合的边框使用border:0;去掉,注意要在html的table标签上加上border=“0” cellspacing=“0” cellpadding=“0”,在css中加不起作用 2可以令border=0,cellspacing=1,,然后设置table颜色和单 阅读全文
摘要:
只有当display为行内块元素时(inline-block),vertical-align:middle;才生效,或者将display设置为table-cell,需要多行文字居中时才需要,单行文字,直接line-height。 图片,按钮,单复选框,多行文本默认的display为inline-bl 阅读全文
摘要:
1.用伪元素实现 .border_1px_top{ position:relative;} .border_1px_top:before{ content: ""; position:absolute; left:0; top:0; right:-100%; bottom:-100%; -webki 阅读全文
摘要:
能用padding,margin解决的不要使用伪元素,能用背景解决的也不要用伪元素 阅读全文
摘要:
可以在css中添加border:0;去掉其中的一条border 阅读全文
摘要:
div是默认的块元素,不能再设置100%,否者再给设置margin或padding就会溢出 阅读全文