随笔分类 -  html+css

摘要:清浮动 父级添加类别! 1 .clearfix{zoom:1;//兼容ie6,7} 2 .clearfix:after{ 3 content:"."; 4 display: "block"; 5 height: "0"; 6 clear: both; 7 visibility: hidden; 8 阅读全文
posted @ 2017-01-19 13:21 ghfjj 阅读(271) 评论(0) 推荐(0)
摘要:1 .text-hide{ 2 font:0/0 a; 3 color:transparent; 4 text-shadow:none; 5 background-color:transparent; 6 border:0; 7 } 阅读全文
posted @ 2017-01-19 13:21 ghfjj 阅读(199) 评论(0) 推荐(0)
摘要:边界重叠是指两个或多个盒子(可能相邻也可能嵌套)的相邻边界(其间没有任何非空内容、补白、边框)重合在一起而形成一个单一边界。 两个或多个块级盒子的垂直相邻边界会重合。结果的边界宽度是相邻边界宽度中最大的值。如果出现负边界,则在最大的正边界中减去绝对值最大的负边界。如果没有正边界,则从零中减去绝对值最 阅读全文
posted @ 2017-01-19 13:17 ghfjj 阅读(1156) 评论(0) 推荐(0)
摘要:最近在研究jQuery的选择器,大家知道jQuery的选择器和css的选择器非常相似,所以整理一下css选择器; css1-css3提供非常丰富的选择器,但是由于某些选择器被各个浏览器支持的情况不一样,所以很多选择器在实际css开发中很少用到。 1.基础的选择器 选择器 含义 示例 * 通用元素选择 阅读全文
posted @ 2017-01-19 13:15 ghfjj 阅读(177) 评论(0) 推荐(0)
摘要:两个字符:打两个中文空格(全角字符)试试 推荐 三个字符:   阅读全文
posted @ 2017-01-19 13:14 ghfjj 阅读(738) 评论(0) 推荐(0)
摘要:问题:点击 <a href="18禁.pdf">下载</a> 的时候,Chrome 会自动调用内置的 pdf 阅读器打开,我只想让用户下载这个文件,有什么办法呢? 答案:<a href="18禁.pdf" download>下载</a> 阅读全文
posted @ 2017-01-19 13:12 ghfjj 阅读(2925) 评论(0) 推荐(0)
摘要:http://www.superslide2.com/param.html --superslider插件地址 html css js 阅读全文
posted @ 2017-01-19 13:00 ghfjj 阅读(970) 评论(0) 推荐(0)
摘要:清浮动 父级添加类别! .clearfix{zoom:1;//兼容ie6,7} .clearfix:after{ content:"."; display: "block"; height: "0"; clear: both; visibility: hidden; } 防止上下margin重叠,也 阅读全文
posted @ 2017-01-10 09:21 ghfjj 阅读(279) 评论(0) 推荐(0)
摘要:-webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; 阅读全文
posted @ 2017-01-06 09:28 ghfjj 阅读(119) 评论(0) 推荐(0)