Fighting the Landlords
大意:
斗地主。。。。 分别给出两把手牌,肯定都合法。每张牌大小顺序是Y (i.e. colored Joker) > X (i.e. Black & White Joker) > 2 > A (Ace) > K (King) > Q (Queen) > J (Jack) > T (10) > 9 > 8 > 7 > 6 >...
分类:
其他好文 时间:
2014-08-07 23:15:45
阅读次数:
348
有时文本文字已经超过所在的区域,但是文字还是不自动换行可以用强制换行强制不换行div{ white-space:nowrap;}自动换行div{ word-wrap:break-word; word-break:normal;}强制英文单词断行div{ word-break:break-all;}这...
分类:
Web程序 时间:
2014-08-07 23:01:14
阅读次数:
369
Fighting the Landlords大意:斗地主。。。。 分别给出两把手牌,肯定都合法。每张牌大小顺序是Y (i.e. colored Joker) > X (i.e. Black & White Joker) > 2 > A (Ace) > K (King) > Q (Queen) > ....
分类:
其他好文 时间:
2014-08-07 22:02:42
阅读次数:
288
@代表引用资源@*代表引用系统的非public资源,如:@*android:color/white@[package:]type/name引用自定义资源,如:android:text="@string/hello"?代表引用主题属性android:textColor="?android:textDi...
分类:
移动开发 时间:
2014-08-07 18:45:50
阅读次数:
362
强制换行 1、word-break: break-all; 只对英文起作用,以字母作为换行依据。 2、word-wrap: break-word; 只对英文起作用,以单词作为换行依据。 3、white-space: pre-wrap; 只对中文起作用,强制换行。禁止换行 ...
分类:
Web程序 时间:
2014-08-07 12:06:59
阅读次数:
362
onItemSelected(AdapterView parent, View v, int position, long id) { TextView v1 = (TextView)v; v1.setTextColor(Color.WHITE); //可以随意设置自己要的颜色值 }本文转自:ht....
分类:
其他好文 时间:
2014-08-05 15:30:59
阅读次数:
233
text-overflow:ellipsis;white-space:nowrap;overflow:hidden;不换行,一行显示溢出时,文本自动换行。以前都是js计算的,现在可好。ellipsis:省略号
分类:
Web程序 时间:
2014-08-05 09:30:58
阅读次数:
360
Metric spaces is a large class of spaces on which the closeness of two points is depicted by a distance function, or called a metric. Metric spaces ar...
分类:
其他好文 时间:
2014-08-05 03:04:28
阅读次数:
220
1、word-wrap:break-word,内容将在边界内换行,仅用于块对象,内联对象要用的话,必须要设定height、width或display:block或position:absolute。 2、word-break:break-all,用于处理单词折断。 3、white-space:n...
分类:
其他好文 时间:
2014-08-04 14:45:37
阅读次数:
231