#define UILABEL_LINE_SPACE 6 #define HEIGHT [ [ UIScreen mainScreen ] bounds ].size.height //给UILabel设置行间距和字间距 -(void)setLabelSpace:(UILabel*)label wi ...
分类:
其他好文 时间:
2016-09-04 00:09:53
阅读次数:
145
sed(stream editor)是一款高效的流编辑器,它一次只处理一行内容,处理时,把当前处理的行存储在临时缓冲区中,称为“模式空间”(pattern space),接着用sed命令处理缓冲区中的内容,处理完成后把缓冲区的内容送往屏幕,接着处理下一行,这样不断重复,直到文件末尾。sed处理过的文 ...
分类:
其他好文 时间:
2016-09-04 00:07:54
阅读次数:
161
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you ...
分类:
其他好文 时间:
2016-09-03 22:37:21
阅读次数:
209
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word ...
分类:
其他好文 时间:
2016-09-03 21:03:52
阅读次数:
129
{width: 150px; overflow: hidden; text-overflow:ellipsis; white-space: nowrap;} 1、之前在考虑如果进行字符串截断时,一直在思考如何用js来完成而忽略了css的text-overflow属性; 通过设置white-space ...
分类:
其他好文 时间:
2016-09-02 18:55:47
阅读次数:
147
可以在Bar Button Item后面填个Fixed Space Bar Button Item 或者Flexible Space Bar Button Item,然后再在后面加上下一个Bar Button ItemFixed Space Bar Button Item 可以你去定义它要多宽Fle ...
分类:
其他好文 时间:
2016-09-02 11:17:08
阅读次数:
132
题目大意:一个字符串,用已知的字符把它变为回文串时,代价最小是多少?其中添加一个字符或删除一个字符都有相应代价。 Input Line 1: Two space-separated integers: N and M Line 2: This line contains exactly M char ...
分类:
其他好文 时间:
2016-09-01 18:47:35
阅读次数:
192
题目大意:一奶牛可以在一段时间内挤奶,挤完要休息一段时间。不同的时间段的量不一样。时间段不可以重叠,问做多能挤出多少奶? Input * Line 1: Three space-separated integers: N, M, and R* Lines 2..M+1: Line i+1 descr ...
分类:
其他好文 时间:
2016-09-01 18:16:18
阅读次数:
136
今天做东西,遇到了这个问题,百度后总结得到了这个结果。 首先,要知道css的三条属性。 overflow:hidden; //超出的文本隐藏 text-overflow:ellipsis; //溢出用省略号显示 white-space:nowrap; //溢出不换行 这三个是css的基础属性,需要记 ...
分类:
Web程序 时间:
2016-09-01 17:54:30
阅读次数:
175