.test {
width: 30px;
height: 30px;
margin-right: 10px;
float: left;
background-color: orange;
line-height: 30px;
tex...
分类:
Web程序 时间:
2015-04-15 19:42:19
阅读次数:
201
属性简单属性前面用到的Width/Height都是简单属性,其赋值一定要放到双引号里XAML解析器会根据属性的类型执行隐式转换与C#的区别SolidBrush.Color = Colors.AliceBlue;C#中有的枚举类型可以用(|)运算符组合,在XAML中用(,)分隔附加属性附加属性可以用于...
xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"...
分类:
其他好文 时间:
2015-04-15 17:08:01
阅读次数:
168
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2015-04-15 16:50:03
阅读次数:
117
今天在程序里面修改一个功能,将单独的日期修改成一个日期范围。我就在两者之间添加了一个label,将两者隔开。text:' - ',结果两边的空格没有效果,显示出来的只有中间的'-';后来我在后面添加了一个宽度属性width:100,还是没有效果。又试了一些其它的方法都不行。最后请教同事才知道可以在里...
分类:
Web程序 时间:
2015-04-15 16:24:02
阅读次数:
148
android:layout_weight详细分析介绍:布局文件是:出现的布局是:button1占了2/3,button2占了1/3。但是如果将布局文件中的button的属性android:layout_width="fill_parent"改为android:layout_width="wrap_...
分类:
移动开发 时间:
2015-04-15 16:20:19
阅读次数:
174
一直用的是flex,目前flex转apache好像支持力度不够,看下javaFX,企业组件也完善了,决定尝试一下。遇到一个问题,记录一下,备忘: 1、自适应布局几乎是标准布局。javaFX中有点奇特; 1)它没有width=100%,height...
分类:
编程语言 时间:
2015-04-15 15:10:44
阅读次数:
666
xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"...
分类:
其他好文 时间:
2015-04-15 13:34:28
阅读次数:
231
1.iPhone尺寸规格设备iPhone宽Width高Height对角线Diagonal逻辑分辨率(point)Scale Factor设备分辨率(pixel)PPI3GS2.4 inches (62.1 mm)4.5 inches (115.5 mm)3.5-inch320x480@1x320x4...
分类:
其他好文 时间:
2015-04-15 13:19:01
阅读次数:
219
大家应该都知道用text-overflow:ellipsis属性来实现单行文本的溢出显示省略号(…)。当然部分浏览器还需要加宽度width属性。以下是常规写法overflow: hidden;text-overflow: ellipsis;white-space: nowrap;但是这个属性并不支持...
分类:
其他好文 时间:
2015-04-15 11:00:26
阅读次数:
120