码迷,mamicode.com
首页 >  
搜索关键字:height    ( 24230个结果
用canvas裁剪图片
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
Uva 1638 Pole Arrangement DP
倒过来从插入最短的木棒考虑 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书写规范及顺序
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
Andorid获取状态栏高度
在应用开发中,有时我们需要用代码计算布局的高度,可能需要减去状态栏(status bar)的高度。状态栏高度定义在Android系统尺寸资源中status_bar_height,但这并不是公开可直接使用的,例如像通常使用系统资源那样android.R.dimen.status_bar_height。但是系统给我们提供了一个Resource类,通过这个类我们可以获取资源文件。下边是在Activity...
分类:其他好文   时间:2015-01-29 16:07:05    阅读次数:165
ajax进度条
.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
Android Bundle的使用
发送数据: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
gchart 插件API
data: 一个二维数组,参数类型如下:[[153, 60, 52], [113, 70, 60], [120, 80, 40]] size: 图片显示的大小 ( width x height ) 300x200 type: 前面已经说过了 这里不再累述 xis_lab...
分类:Windows程序   时间:2015-01-29 07:04:08    阅读次数:188
cocos2d3 宏定义屏幕宽高,这样就不用重复获取了
#define SCREEN_WIDTH CCDirector::sharedDirector()->getWinSize().width //屏幕宽(指定分辨率)#define SCREEN_HEIGHT CCDirector::sharedDirector()-...
分类:其他好文   时间:2015-01-28 19:22:10    阅读次数:232
html学习第二天—— 第八章—— CSS选择器
标签选择器其实就是html代码中的标签。如右侧代码编辑器中的、、、、。例如下面代码:p{font-size:12px;line-height:1.6em;}上面的css样式代码的作用:为p标签设置12px字号,行间距设置1.6em的样式。类选择器类选择器在css样式编码中是最常用到的,如右侧代码编辑...
分类:Web程序   时间:2015-01-28 19:15:19    阅读次数:193
js实现类似jquery基础功能 简单选择器/事件/属性
按钮样式定义 <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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!