1、单行文本溢出显示省略号的css写法1 overflow:hidden;2 text-overflow:ellipsis;3 white-space:nowrap;/*不换行*/2、多行文本显示省略号 这里根据应用场景来实现 1)Webkit浏览器或移动端页面 可以使用webkit的私有属性...
分类:
Web程序 时间:
2015-04-03 13:28:55
阅读次数:
176
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:
其他好文 时间:
2015-04-03 13:17:49
阅读次数:
120
1、一行文字自适应屏幕(不折行,隐藏多余文字,显示省略号) white-space: nowrap; text-overflow: ellipsis; overflow: hidden; 以上三个样式同时使用。
分类:
Web程序 时间:
2015-04-03 13:02:14
阅读次数:
133
Unique Paths II - LeetCode
题目:
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is mar...
分类:
其他好文 时间:
2015-04-03 09:32:22
阅读次数:
105
ul li{ height:25px; line-height:25px; width:200px; overflow:hidden; white-space:nowrap;-moz-text-overflow:ellipsis; text-overflow:ellipsis; }注意以上几个的先后...
分类:
其他好文 时间:
2015-04-02 22:34:44
阅读次数:
130
背景:把两个项目同时部署在tomcat,启动快好的时候,报java.lang.OutOfMemoryError: PermGen space原因:因为两个项目的jar包太多,JVM把里面的class文件加载时把默认的内存撑爆了解决方法:(1)查找了很多网上的方法,但是还是解决不了我的问题。我的解决方...
分类:
编程语言 时间:
2015-04-02 22:14:19
阅读次数:
164
Language : C++ 4.8.2#include#includeint main(void){ int n; int sum; // 记录每一组数据里面所有空格的个数 int count; // 记录单行的个数 int length; int min_space...
分类:
系统相关 时间:
2015-04-02 18:25:23
阅读次数:
150
problem:
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 resp...
分类:
其他好文 时间:
2015-04-02 15:05:20
阅读次数:
127
JVM内存组成结构JVM由堆、栈、本地方法栈、方法区等部分组成,结构图如下所示:1)堆所有通过new创建的对象的内存都在堆中分配,其大小可以通过-Xmx和-Xms来控制。堆被划分为新生代和旧生代,新生代又被进一步划分为Eden和Survivor区,最后Survivor由From Space和To S...
分类:
其他好文 时间:
2015-04-02 15:04:37
阅读次数:
119
解决
OutOfMemoryError: PermGen space
,过程是痛苦的,结果是舒畅的
最近自己的程序在
Redeploy
重新部署的时候,老提示
OutOfMemoryError: PermGen
space
错误,在网络上搜索了相关的资料,但是按照做后还是存在这个问题。由
于我是第一次碰到这个问题,
花费了我
2
天时间,
过程比较痛苦,
...
分类:
其他好文 时间:
2015-04-02 11:47:26
阅读次数:
125