.box { width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}第二个属性是如何处理文本中的空白:nowrap 文本不会换行,文本会在在同一行上继续,直到遇到 <br> 标签为止。第...
分类:
Web程序 时间:
2015-01-05 16:18:51
阅读次数:
177
一、对于div强制换行1.(IE浏览器)white-space:normal; word-break:break-all;这里前者是遵循标准。#wrap{white-space:normal; width:200px; }或者#wrap{word-break:break-all;width:200p...
分类:
其他好文 时间:
2015-01-05 12:38:25
阅读次数:
155
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:
其他好文 时间:
2015-01-05 08:16:36
阅读次数:
147
High-Performance Server Architecture高性能服务器架构来源:http://pl.atyp.us/content/tech/servers.html译文来源:http://www.lupaworld.com/home/space-341888-do-blog-id-1...
分类:
其他好文 时间:
2015-01-05 00:23:52
阅读次数:
166
Given an index k, return the kth row of the Pascal's triangle.
For example, given k = 3,
Return [1,3,3,1].
Note:
Could you optimize your algorithm to use only O(k) extra space?
与Pascal's Tr...
分类:
其他好文 时间:
2015-01-04 17:18:04
阅读次数:
169
原文网址:http://www.iteye.com/topic/5876731. Sed简介sed 是一种在线编辑器,它一次处理一行内容。处理时,把当前处理的行存储在临时缓冲区中,称为“模式空间”(pattern space),接着用sed命令处理缓冲区中的内容,处理完成后,把缓冲区的内容送往屏幕。...
分类:
系统相关 时间:
2015-01-04 16:54:20
阅读次数:
254
表格:
table{
table-layout: fixed;
}
}
t
td{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
本方法用于解决表格单元格内容过多时的美观问题,主要涉及到4句CSS样式:
1. table-layout: fixed 由于tab...
分类:
Web程序 时间:
2015-01-04 15:25:20
阅读次数:
158
Ubuntu 12.04中文输入法的安装Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等。其中Scim和Ibus是输入法框架。在Ubuntu的中文系统中自带了中文输入法,通过Ctrl+Space可切换中英文输入法。这里我们主要说下Ubuntu英文系...
分类:
系统相关 时间:
2015-01-04 15:17:01
阅读次数:
146
Good for array and linked list. Stable Sort.Time Complexity: Best, Average, Worst => O(nlogn);Space Complexity: O(n), in-place merge sort makes it ver...
分类:
其他好文 时间:
2015-01-04 13:25:46
阅读次数:
156
ASCII码
ASCII码一共规定了128个字符的编码,比如空格"SPACE"是32(二进制00100000),大写的字母A是65(二进制01000001)。这128个符号(包括32个不能打印出来的控制符号),只占用了一个字节的后面7位,最前面的1位统一规定为0。
非ASCII编码
英语用128个符号编码就够了,但是用来表示其他语言,128个符号是不够的。比如,在法语中,字母上方有注音符...
分类:
其他好文 时间:
2015-01-04 11:30:41
阅读次数:
235