说到 IE 的 bug,一个臭名昭著的例子是它对于“盒模型”的错误解释:在 IE5.x 以及 Quirks 模式的 IE6/7 中,将 border 与 padding 都包含在 width 之内。这为前端工程师的工作平添了不少麻烦,几户每个需要定义尺寸的 box 都要思量一下:是否触发了“盒模型 ...
分类:
Web程序 时间:
2015-04-17 17:47:26
阅读次数:
132
function resize($srcImage,$toFile,$maxWidth = 200,$maxHeight = 200,$imgQuality=75) { list($width, $height, $type, $attr) = getimagesize($srcImage); .....
分类:
其他好文 时间:
2015-04-17 15:21:43
阅读次数:
141
优化布局层次1.避免布局镶嵌过深(如下)<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_paren...
分类:
移动开发 时间:
2015-04-17 14:04:35
阅读次数:
183
效果图》》
布局》》》
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@draw...
分类:
其他好文 时间:
2015-04-17 13:58:13
阅读次数:
227
【WPF】 布局篇 一. 几个常用且至关重要的属性1. Width,Height : 设置窗体,控件宽高。 这里注意,WPF是自适应的, 所以把这2个属性设置 Auto, 则控件宽高会自动改变。2. HorizontalAlignment, VerticalAlignment : 设置控件的对其方式...
<EditText ??????????????? android:id="@+id/searchEditText" ??????????????? android:layout_width="0dp" ??????????????? android:layout_height="fill_parent...
分类:
其他好文 时间:
2015-04-17 11:55:20
阅读次数:
121
android:id="@+id/toast_layout"
android:layout_width="200dip"
android:layout_height="fill_parent"
android:background="#f0f0f0"
android:orientation="vertical" >
andr...
分类:
移动开发 时间:
2015-04-17 11:26:46
阅读次数:
244
以前的写法1 NSString *text = ...;2 CGFloat width = ...;3 UIFont *font = ...;4 CGSize size = [text sizeWithFont:font 5 constrainedToSize:(CGS...
分类:
移动开发 时间:
2015-04-17 10:53:04
阅读次数:
1581
android:layout_width="200dp"
android:layout_height="wrap_content"
android:background="@android:color/black"
android:src="@drawable/v2_boutique_app_viewpager_indicator" />
...
分类:
移动开发 时间:
2015-04-17 09:42:47
阅读次数:
138
//编写基于对象的程序,求3个长方柱(Bulk)的体积。
// 数据成员包括长(length)、宽(width)、高(heigth)、体积,要求设计成员函数实现下面的功能:
//(1)由键盘输入3个长方柱的长、宽、高;
//(2)计算长方柱的体积(volume)和表面积(areas);
//(3)输出这3个长方柱的体积和表面积;
#include
using namespace std...
分类:
其他好文 时间:
2015-04-16 17:44:18
阅读次数:
153