@property(nonatomic, readonly, retain) UILabel *titleLabelDescription - 描述A view that displays the value of the currentTitle property for a button. (r...
分类:
其他好文 时间:
2014-06-28 21:42:04
阅读次数:
277
1.圆角:border-radius:16px 16px 16px 16px;2透明度: filter: alpha(opacity=80); opacity: 0.8;3. div内文本自动换行: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
分类:
Web程序 时间:
2014-06-18 22:44:43
阅读次数:
329
强制不换行 div{ white-space:nowrap; } 自动换行 div{ word-wrap: break-word; word-break: normal; } 强制英文单词断行 div{ word-break:break-all; } ========================...
分类:
Web程序 时间:
2014-06-18 10:47:41
阅读次数:
274
UIButton的titleLabel@property(nonatomic, readonly, retain) UILabel *titleLabelDescription - 描述A view that displays the value of the currentTitle proper...
分类:
其他好文 时间:
2014-06-18 09:08:25
阅读次数:
160
NSString *str = @"我是一asdf我是一我是一我是一我是一我是一我是一我是一我是一我是一我是一我是一asdf我是一asdf我是一asdf我是一asdf我是一asdf我是一asdf"; CGSize labelSize = [str sizeWithFont:[UIFont boldS...
分类:
其他好文 时间:
2014-06-18 00:14:11
阅读次数:
189
做法如下:1. 取消xib的Use Autolayout属性的勾选:2. 将xib中每一个子控件(没错,每一个控件,包括UIButton、UILabel等等),将它们的Y Frame的值全部增加20。然后将它们的ΔY值全部设为-20。就是这样。
分类:
移动开发 时间:
2014-06-17 21:26:44
阅读次数:
440
在很多的网站上我们都会看到这样的效果——自适应两栏布局。那么它和两栏布局又有什么区别呢?下面我们一起来研究一下。 一、什么是自适应两栏布局 当我们调整浏览器的宽度时,我们希望其中的一个比较重要的分栏保持不变;而另一个分栏能随着浏览器宽度的变化自动的调节自己的宽度,而其内容自动的换行,不会出现...
分类:
其他好文 时间:
2014-06-17 20:58:05
阅读次数:
228
UILabel*label = [[UILabelalloc]initWithFrame:CGRectMake(0, 0,75,40)]; //声明UIlbel并指定其位置和长宽label.backgroundColor= [UIColorclearColor]; //设置label的背景色,这里设...
分类:
移动开发 时间:
2014-06-17 20:54:11
阅读次数:
250
二十三. Bash Shell编程:1. 读取用户变量: read命令是用于从终端或者文件中读取输入的内建命令,read命令读取整行输入,每行末尾的换行符不被读入。在read命令后面,如果没有指定变量名,读取的数据将被自动赋值给特定的变量REPLY。下面的列表给出了read命令的常用方式:命令格式描...
分类:
系统相关 时间:
2014-06-17 14:58:55
阅读次数:
370
find命令–用途:用于查找文件或目录–格式:find[查找范围][查找条件]常用查找条件–-name:按文件名称查找–-size:按文件大小查找–-user:按文件属主查找–-type:按文件类型查找–-print:以\n为换行符打印出文件(路径)高级查找条件–-perm:按权限查找–-ctime(-cmin?.
分类:
系统相关 时间:
2014-06-16 15:04:40
阅读次数:
260