左边是火狐显示,右边为IE显示。用overflow:hidden;可使子div消失。
分类:
其他好文 时间:
2014-11-23 21:33:06
阅读次数:
132
给子div添加margin-top: 20px,发现父子DIV都一起相对BODY下移了20PX,为何不是只是子DIV下移20PX ? 如果我给父DIV添加border: 1px solid,就可以实现父DIV不动,只是子DIV相对父DI...
分类:
其他好文 时间:
2014-11-23 18:53:52
阅读次数:
150
http://www.ofcss.com/2011/03/20/misunderstood-of-overflow-hidden.html(转)容易被误解的overflow:hidden15条评论为了页面的健壮性,我们常常需要使用overflow:hidden。有时候是为了防止布局被撑开,有时候是为...
分类:
其他好文 时间:
2014-11-21 18:17:19
阅读次数:
270
text-overflow: ellipsis;该属性用于定义文本溢出的显示方式css代码:.textEllipsis { overflow: hidden !important; white-space: nowrap !important; text-overflow: ell...
分类:
Web程序 时间:
2014-11-21 17:53:11
阅读次数:
197
Styles: table{ table-layout:fixed; } table td{ text-overflow:ellipsis;overflow:hidden;white-space: nowrap; }
分类:
其他好文 时间:
2014-11-21 14:05:01
阅读次数:
279
a{ display: block; /*定义显示形式*/ overflow: hidden; /*截取超出字符*/ text-overflow: ellipsis; /*超出字符以…代替*/ white-space: nowrap; ...
分类:
Web程序 时间:
2014-11-21 12:00:40
阅读次数:
212
这个文章不错http://www.css88.com/archives/5206css中有一个属性: text-overflow,可以设置文本超出指定长度后的文本截取样式。下面是从 w3shcool截的图:但是 text-overflow 有一个缺陷,它只能对单行文本起效果,如果是多行文本就不好使了...
分类:
其他好文 时间:
2014-11-20 20:18:26
阅读次数:
180
关于ActionBar最有这三个点按钮:
正式的名称应该是
overflow menu,在android4.2.2以上的设备是默认出现的,但是android4.1.2的设备不显示,似乎android也没有提供显示的API,所以网上搜索到这个强制显示的方案(亲测可用)。
关键代码如下:
private void getOverflowMenu() {
ViewConfigu...
分类:
其他好文 时间:
2014-11-19 12:39:14
阅读次数:
121
css:
width: 350px;
display: block;
white-space:nowrap;
overflow: hidden;
text-overflow:ellipsis;...
分类:
Web程序 时间:
2014-11-19 10:59:41
阅读次数:
173
常用的清除浮动的几种方法总结下: 1,手动设置一个标签(在浮动元素下方),然后对其设置clear属性 2,给浮动元素设置 :after伪类,创建块元素,设置clear属性 3,给父元素设置浮动 4,给父元素设置overflow设置非visible值(auto,hidden) 5,给父元...
分类:
其他好文 时间:
2014-11-18 23:40:01
阅读次数:
200