1 var selectObj = null; 2 function ImageCrop(canvasId, imageSource, x, y, width, height) { 3 var canvas = $("#" + canvasId); 4 if (canvas...
分类:
其他好文 时间:
2015-01-29 19:06:44
阅读次数:
183
倒过来从插入最短的木棒考虑
1638 Pole ArrangementThere are poles of height 1, 2, . . . , n in a row. If you look at these poles from the left side or the rightside, smaller poles are hidden by taller poles. Fo...
分类:
其他好文 时间:
2015-01-29 17:44:49
阅读次数:
160
CSS书写顺序1.位置属性(position, top, right, z-index, display, float等)2.大小(width, height, padding, margin)3.文字系列(font, line-height, letter-spacing, color- text...
分类:
Web程序 时间:
2015-01-29 17:16:40
阅读次数:
303
在应用开发中,有时我们需要用代码计算布局的高度,可能需要减去状态栏(status bar)的高度。状态栏高度定义在Android系统尺寸资源中status_bar_height,但这并不是公开可直接使用的,例如像通常使用系统资源那样android.R.dimen.status_bar_height。但是系统给我们提供了一个Resource类,通过这个类我们可以获取资源文件。下边是在Activity...
分类:
其他好文 时间:
2015-01-29 16:07:05
阅读次数:
165
.graph { width: 400px; height: 25px; border: 1px solid #f8b3d0; }.bar { background-color: #ffe7f4; display: block; float: left; height: 100%; text-ali...
分类:
Web程序 时间:
2015-01-29 15:55:13
阅读次数:
169
发送数据:Bundle bundle = new Bundle();bundle.putString("sex" , "男人");bundle.putDouble("height" , 40,38);Intent intent = new Intent();intent.putExtras(bund...
分类:
移动开发 时间:
2015-01-29 14:13:04
阅读次数:
161
data: 一个二维数组,参数类型如下:[[153, 60, 52], [113, 70, 60], [120, 80, 40]] size: 图片显示的大小 ( width x height ) 300x200 type: 前面已经说过了 这里不再累述 xis_lab...
#define SCREEN_WIDTH CCDirector::sharedDirector()->getWinSize().width //屏幕宽(指定分辨率)#define SCREEN_HEIGHT CCDirector::sharedDirector()-...
分类:
其他好文 时间:
2015-01-28 19:22:10
阅读次数:
232
标签选择器其实就是html代码中的标签。如右侧代码编辑器中的、、、、。例如下面代码:p{font-size:12px;line-height:1.6em;}上面的css样式代码的作用:为p标签设置12px字号,行间距设置1.6em的样式。类选择器类选择器在css样式编码中是最常用到的,如右侧代码编辑...
分类:
Web程序 时间:
2015-01-28 19:15:19
阅读次数:
193
按钮样式定义
<style>
.btn{display:?inline-block;width:?100px;height:?20px;color:?#fff;font-size:?12px;background-color:?#0033dd;text-align:?center;line-height:?20px;text-decoration:?none;...
分类:
Web程序 时间:
2015-01-28 18:10:31
阅读次数:
163