clearboth{clear:both;display:block;height:0;font-size:0;overflow:hidden;}
分类:
其他好文 时间:
2015-09-23 16:38:04
阅读次数:
137
定义css样式.hidden{display:nidden}
因为栏目id为6的栏目是关于我们等非核心栏目,不想在导航上显示,但在后台又没有设置隐藏,设置隐藏了前台的其它栏目页就没法调用他了.所以,在导航条上要处理一下
{dede:ch...
分类:
Web程序 时间:
2015-09-23 10:42:17
阅读次数:
193
/*这里是鼠标放上去显示全名 */ .kb2wText{display:block; height:20px; width:150px; line-height:20px; color:#000000; overflow:hidden;} .kb2wText:hover { width:100%; ...
分类:
其他好文 时间:
2015-09-22 14:38:06
阅读次数:
137
问题: 1、在IE6下面出现双倍margin:页面中元素在浮动时设置margin ie6会出现双倍距离——解决办法:在float的标签样式中加入display:inline; 2、IE6,7里 3、在IE6里的间距比超过设置的间距——解决办法:overflow:hidden; 4、子元素绑架父元素....
分类:
其他好文 时间:
2015-09-20 01:37:15
阅读次数:
166
Bootstrap为了让所有的页面(这里指内容溢出和不溢出)显示效果一样,采取的方法如下: 当Modal显示时,设置body -- overflow:hidden;margin-right:15px;(设置15px是因为浏览器的滚动条占位是15px);(通过在mod...
分类:
其他好文 时间:
2015-09-18 18:59:37
阅读次数:
131
一、垂直居中1、利用margin *{margin:0; padding:0; position:relative;} .div1{width:400px; height:400px; background:#f00;margin:20px auto; overflow:hidden;} .div2...
分类:
其他好文 时间:
2015-09-18 18:32:03
阅读次数:
138
.txt{font-size: 12px;color: #666666;width:170px;height:2.8em;line-height:1.4em;position:relative;overflow:hidden;} .txt::after{content:"...";font-weig...
分类:
其他好文 时间:
2015-09-17 13:08:03
阅读次数:
158
IE6,IE7下设置body{overflow:hidden;}失效Bug 最近做项目发现在IE7下设置body{overflow:hidden;}后还是会出现纵向滚动条,所以上网查查了,在这里记录一下: 设置body{overflow:hidden;}:IE6 IE7下不生效。IE6下横向纵向.....
分类:
其他好文 时间:
2015-09-16 15:49:33
阅读次数:
106
1 //单行文本溢出... 2 .singleline{ 3 overflow: hidden; 4 white-space: nowrap; 5 text-overflow: ellipsis; 6 } 7 8 //多行文本溢出... 9 10 .morel...
分类:
其他好文 时间:
2015-09-16 12:47:22
阅读次数:
234
以前听过,不知道是什么,其实就是字符串首尾相连成一个环,n种切法求一个字典序最小的表示。朴素算法大家都懂。O(n)的算法代码非常简单,最主要的思想是失配的时候尽可能大的移动指针。另外附上一个不错的字符串算法总结:http://duanple.blog.163.com/blog/static/7097...
分类:
其他好文 时间:
2015-09-15 21:51:03
阅读次数:
139