1.清除矩形区域 context.clearRect(x,y,width,height) x:清除矩形起点横坐标 y:清除矩形起点纵坐标 width:清除矩形长度 height:清除矩形高度2. 绘制矩形 context.fillRect(x,y,width,height) strokeRect.....
分类:
其他好文 时间:
2014-12-18 01:33:42
阅读次数:
245
<TextView?android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@android:color/white"?
android:ellipsize="marquee"?
android:focusable="true"
android:singleL...
分类:
移动开发 时间:
2014-12-17 22:47:41
阅读次数:
185
A:直接拆开字符串写就好了。今天的题目比较容易一些:B:题目大意:求最少的翻转次数,每次翻转i是对应 y%i==0都会翻转。球所有翻转为off状态的最小次数;从最小idx开始,依次做就好了,因为它的状态是以后做不到的。C:题目大意:给出一个带权重的无向图。求最大的height使0-n-1中权重小于H...
分类:
其他好文 时间:
2014-12-17 22:11:51
阅读次数:
178
.artist .mod .info .content .abstract:after { content: '...'; position: absolute; right: 0; display: block; width: 21px; height: 20px; t...
分类:
其他好文 时间:
2014-12-17 20:45:26
阅读次数:
129
JS知识点回车符/r和换行符/n的区别:/r 相当于enter,是段落与段落之间的区别, /n 相当于shift+enter,是行与行之间距离,比较小几种window操作方法:1、获取当前窗口大小并打印:var height=window.innerHeight;var wi...
分类:
Web程序 时间:
2014-12-17 20:40:15
阅读次数:
240
关键代码:/// $.jgrid.extend({ initBase: function (height, width, colNames, colModel, caption) { /// /// 初始化基本的本地数据jqGird /// /// 高度 /// 宽度 /// 列名称集合
...
分类:
编程语言 时间:
2014-12-17 20:18:45
阅读次数:
278
文字 float:left 没有float float:left问题:li的line-height失效。在ie6中,当文字和img、input、textarea、select、object等对象在同一个容器中的时候,line-height属性失效。只有全文字时,line-height属性才有...
分类:
其他好文 时间:
2014-12-17 18:06:09
阅读次数:
183
屏幕PPI计算: (White^2+Height^2)^0.5/屏幕大小英寸数毫米和像素换算: mm=(px/dpi)*25.4px=(mm*dpi)/25.4 英寸=px/dpi 1英寸=25.4毫米dpi获取:方法1.using (Graphics graphic...
分类:
其他好文 时间:
2014-12-17 16:12:15
阅读次数:
2504
1.若页面需默认用极速核,增加标签若页面需默认用ie兼容内核,增加标签若页面需默认用ie标准内核,增加标签2.在使用IE内核中,使用最新版的IE文档模式3.在手机的浏览器中页面将以原始大小显示,并不允许缩放。width - viewport的宽度 height - viewport的高度 ini.....
分类:
Web程序 时间:
2014-12-17 16:03:31
阅读次数:
134
相信很多人都用过利用border来实现小三角箭头,百度一下,这类的文章多如牛毛,这里我还是啰嗦点把常用的方法陈列出来:.triangle_border_up{ width:0; height:0; border-width:0 30px 30px; border-style:...
分类:
Web程序 时间:
2014-12-17 14:24:56
阅读次数:
147