overflow-x:scroll是横的有overflow-y:scroll是竖的有overflow:scroll横竖有overflow:hidden横竖都没有
分类:
其他好文 时间:
2014-09-10 20:56:40
阅读次数:
161
一、屏幕适配工具类
public class MultiScreenTool {
static Activity activity;
public DisplayMetrics displayMetrics = null;
public int defaultX = 0;
public int defaultY = 0;
public float defaultDensity =...
分类:
移动开发 时间:
2014-09-10 17:53:01
阅读次数:
312
-webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; /* this fixes the overflow:hidden in Chrome */ -webkit-ma...
分类:
其他好文 时间:
2014-09-10 17:42:40
阅读次数:
225
1.static_cast最常用的类型转换符,在正常状况下的类型转换,如把int转换为float,如:int i;float f; f=(float)i;或者f=static_cast(i);·static_cast 可以被用于强制隐型转换(例如,non-const 对象转型为 const 对象,i...
分类:
其他好文 时间:
2014-09-10 17:19:40
阅读次数:
220
主要讲了HTML5 canvas性能方面的尝试,场景是在canvas上面绘制圆圈。
我一直在尝试使用HTML5 canvas在圣诞树图片上面绘制泡泡。由于不知道哪种绘制的方法最好,最终在Stack Overflow上找到了使用radial gradients(辐射渐变)绘制圆圈的答案。
圆圈
你可能已经知道,标准地画圆圈的方法是使用arc():分享一个最好用的UI...
分类:
Web程序 时间:
2014-09-10 14:14:00
阅读次数:
1320
常用函数 SQRT() 返回表达式的平方根 取近似值函数 CEILING() 返回>=表达式的最小整数,返回数据类型与表达式相同,可为int,money,float型 FLOOR() 返回 ),例:select left(title,8) from news RIGHT() ...
分类:
其他好文 时间:
2014-09-10 00:20:49
阅读次数:
557
导航菜单nav: 1.使用列表标签 2.使用浮动布局float 3.使用超链接标签:要使用标签的margin外边距,需要让标签成为一个块级元素,添加display:block属性 标签代码 logo ...
分类:
Web程序 时间:
2014-09-09 22:54:39
阅读次数:
230
坛友的问题和相关代码如下:看看下面的代码。运行有问题。但是如果我把 style=”position:absolute; top:20px;left:10px改成 style=”float:left;”就正常了,我想不明白为什么? 1: 逆光国际逆光国际逆光国际 2: 20: 21: ...
分类:
其他好文 时间:
2014-09-09 22:52:29
阅读次数:
285
坛友的问题和相关代码如下:
看看下面的代码。运行有问题。但是如果我把 style=”position:absolute; top:20px;left:10px改成 style=”float:left;”就正常了,我想不明白为什么?
1: 逆光国际逆光国际逆光国际
2:
3: //创建一个showhidediv的方法,直接跟ID属性
4: function ...
分类:
其他好文 时间:
2014-09-09 21:32:29
阅读次数:
348
Buffer overflows in user input dependent buffers have become one of the biggest security hazards on the internet and to modern computing in general. T...
分类:
其他好文 时间:
2014-09-09 19:58:59
阅读次数:
341