??1 布局文件, LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou...
分类:
移动开发 时间:
2015-06-19 01:31:50
阅读次数:
137
self.navBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, NAV_BAR_HEIGHT)]; [self.navBar setBackgroundImage:[UIImage imageWithColor:[UIColor clearColor]] for...
分类:
其他好文 时间:
2015-06-19 00:06:44
阅读次数:
161
1.iPhone尺寸规格设备iPhone宽Width高Height对角线Diagonal逻辑分辨率(point)Scale Factor设备分辨率(pixel)PPI3GS2.4 inches (62.1 mm)4.5 inches (115.5 mm)3.5-inch320x480@1x320x4...
分类:
其他好文 时间:
2015-06-18 23:51:04
阅读次数:
309
1、screen对象 Screen对象包含有关客户端显示屏幕的信息 常用于获取屏幕的分辨率和色彩 常用属性 width/height availWidth/availHeight2、history对象 history对象包含用户(在浏览器窗口中)访问过的URL length...
分类:
Web程序 时间:
2015-06-18 23:37:58
阅读次数:
169
最初的代码:1 .container_first {2 width: 100%;3 height: 100%;4 background: url(10176581.jpg);5 background-size: cover;6 position: relati...
分类:
Web程序 时间:
2015-06-18 21:29:22
阅读次数:
263
<!DOCTYPEHTML>
<html>
<body>
<canvasid="myCanvas"width="400"height="400"style="border:1pxsolid"></canvas>
<scripttype="text/javascript">
//getthecanvas
varmyCanvas=document.getElementById("myCanvas");
varctx=myCanvas.ge..
分类:
Web程序 时间:
2015-06-18 20:07:10
阅读次数:
244
btn2 /*--按钮1--*/
.container1?{
??width:200px;
??display:block;
??margin:20px?auto;
??position:relative;
??font-family:droid?arabic?kufi;
}
.con_down1?{
??display:block;
??curso...
分类:
Web程序 时间:
2015-06-18 17:33:08
阅读次数:
156
Android计算器开发实例
最近迷上了安卓开发, 自己做了个web浏览器,很好用,现在想做一个简单的计算器程序员,熟悉安卓的编程基础。下面我们来一起看一下吧。let`s go!
main.xml代码
http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"...
分类:
移动开发 时间:
2015-06-18 17:22:41
阅读次数:
150
servlet生成一个数字验证码1.设置背景private void setBackGround(Graphics g) { g.setColor(Color.orange); g.fillRect(0, 0, WIDTH, HEIGHT); }2.得到图片框pri...
分类:
其他好文 时间:
2015-06-18 17:12:42
阅读次数:
112
关于uc 的flex 和textarea 的width:100%;这些天再做一个wap的项目,本想着手机上不用考虑兼容性问题,可以大刀阔斧搞,fuck ie678!在pc上完成页面开发,在chrome模拟器上做页面的矫,good!一切看起来...
分类:
其他好文 时间:
2015-06-18 15:08:00
阅读次数:
184