path=rtrim($path, "/")."/"; $this -> path = ''; } /* 对图片进行缩放 * * 参数$name: 是需要处理的图片名称 * 参数$width:是缩放后的宽度 * 参数$height:是缩放后的...
分类:
Web程序 时间:
2015-06-25 15:18:36
阅读次数:
127
环境:
EasyUI 1.4.2.
现象:
在使用JQuery EasyUI 的datagrid控件时,使用动态指定columns的方式,相关代码如下:
$("#topApList").datagrid({columns:[[
{field:'aaa',title: 'aaa',align: 'center',width: 130},
{field:'bbb',title: 'bb...
分类:
Web程序 时间:
2015-06-25 14:03:27
阅读次数:
200
edittext 默认自动获取焦点的 而且会出现小键盘很烦人
android:id="@+id/focus"
android:layout_width="fill_parent"
android:layout_height="60dp"
android:background="#E...
分类:
其他好文 时间:
2015-06-25 12:28:30
阅读次数:
150
ntile:伪SQL: ntile(:exp) over()NTILEis an analytic function. It divides an ordered data set into a number of buckets indicated byexprand assigns the ap...
分类:
其他好文 时间:
2015-06-25 10:15:39
阅读次数:
151
php 中之前比较常使用的是GD库来画图像,这个使用得比较多的是验证码的使用。首先GD库画图必须要有的一些步骤:首先,创建画布,其次,绘制图片轮廓和画本,再次是输出图型,最后是释放资源。创建方法如下:imagecreatetruecolor(int width,int height);填充颜色:$c...
分类:
Web程序 时间:
2015-06-24 23:46:06
阅读次数:
307
js不能修改样式表 但是可以修改元素:比如对于上面的层的样式,可以这样修改:var test_div=docuemnt.getElementById("test");test_div.style.width="80px";
分类:
Web程序 时间:
2015-06-24 20:43:41
阅读次数:
221
有时我们在自定义控件时,出于某种原因的考虑(比如:防止在设计时误操作),想禁止调整自定义控件的尺寸(Height或Width)。最初我是这样实现的,这也是较简单的方法:publicclassMyButton : System.Windows.Forms.Button{... ...protected...
分类:
其他好文 时间:
2015-06-24 18:15:23
阅读次数:
120
博客来源 http://blog.csdn.net/eduxh/article/details/1906246//图片自适应大小//id为img控件的id//width与height为img父控件的宽高——即img的最大宽高//示例:"functionimgFit(id,width,height){...
分类:
编程语言 时间:
2015-06-24 18:05:10
阅读次数:
122
private RelativeLayout relativeLayout;
relativeLayout = (RelativeLayout)findViewById(R.id.relativeLayout);player_View.getLayoutParams().height = 240;
player_View.getLayoutParams().width = 320;...
分类:
移动开发 时间:
2015-06-24 16:25:05
阅读次数:
149
html代码:左边栏右边栏主内容方法一:利用绝对定位方法(不推荐)css部分:body{margin:0;padding:0;height:100%;}#left,#right{position:absolute;top:0;width:220px;height:100%;background:pi...
分类:
其他好文 时间:
2015-06-24 14:31:38
阅读次数:
99