记录一下css文字应用overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
分类:
Web程序 时间:
2015-03-20 12:25:16
阅读次数:
127
/* new clearfix */.clearfix:after {visibility: hidden;display: block;font-size: 0;content: " ";clear: both;height: 0;}* html .clearfix { zoom: 1; } /*...
分类:
其他好文 时间:
2015-03-19 20:13:50
阅读次数:
300
今天在网上学习的时候看到一个文章,感觉以后可能会用到,所以就COPY了过来,以便以后可以查阅,感谢 MaCheng的分享,原文地址:http://blog.mc-zone.me/article/370在 CSS3 的border-radius上能遇到很多坑。有关 Android 移动端各种兼容就不说...
分类:
Web程序 时间:
2015-03-19 10:01:49
阅读次数:
481
这里直接介绍我认为的最佳的侧边栏/分栏高度自动相等方法。核心的CSS代码如下(数值不固定): margin-bottom:-3000px; padding-bottom:3000px; 再配合父标签的overflow:hidden 属性即可实现高度自动相等的效果。 举个简单的实例吧,如下CSS...
分类:
Web程序 时间:
2015-03-18 15:32:38
阅读次数:
166
避免使用tspan样式上display:none无效, visibility:hidden无效,只能使用fill:none或rgba(0,0,0,0)容器不能起到绘图的层级作用,覆盖顺序由先后顺序决定样式都要写到该元素上,父级元素样式不能作用到子集
分类:
其他好文 时间:
2015-03-18 13:58:48
阅读次数:
183
/* * 选择文件按钮样式 */.fileinput-button { position: relative; overflow: hidden; float:left;}.fileinput-button input { position: absolute; top...
分类:
其他好文 时间:
2015-03-18 11:51:36
阅读次数:
172
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2594分析:判断是否在两串中存在子串,能作为s1的前缀 && s2的后缀。可以考虑将两串合并,然后直接利用next数组。合并后可能会出现的状况是,所求子串大于s1 || s2的长度,所以还要进行一次判断。...
分类:
其他好文 时间:
2015-03-18 08:56:12
阅读次数:
149
white-space:nowrap;text-overflow:ellipsis; -o-text-overflow:ellipsis;overflow:hidden;
分类:
Web程序 时间:
2015-03-18 01:07:26
阅读次数:
147
background-color: #2a3138; position: fixed; bottom: 0; left: 0; width: 100%; height: 57px; overflow: hidden;
分类:
Web程序 时间:
2015-03-18 01:04:46
阅读次数:
191
本篇文章由:http://xinpure.com/difference-between-displaynone-and-visibilityhidden/区别分析首先我们都知道,display: none 和 visibility: hidden 都可以起到隐藏元素的功能两者的区别在于占用文档流的不...
分类:
其他好文 时间:
2015-03-17 23:31:10
阅读次数:
284