做手机Web开发做浏览器兼容用到了,所以在网上找了些汇总下。alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());...
分类:
Web程序 时间:
2015-01-19 14:11:19
阅读次数:
146
main.xml代码下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical...
分类:
其他好文 时间:
2015-01-19 12:56:22
阅读次数:
109
在应用程序中经常用到启动画面,会启动一个后台线程为主程序的运行准备资源。
Android要实现启动画面可以这样做:
这是splash.xml布局文件的代码[code]
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent" android:layou...
分类:
移动开发 时间:
2015-01-19 12:54:50
阅读次数:
219
坐标轴-横向d3.svg.axisvar height=500,width=500,margin=25,offset=50,axisWidth=width-2*margin,svg;function createSVG(){ svg=d3.select("body").append("svg") ....
分类:
Web程序 时间:
2015-01-19 12:37:14
阅读次数:
226
1 alert($(window).height()); //浏览器时下窗口可视区域高度 2 3 alert($(document).height()); //浏览器时下窗口文档的高度 4 5 alert($(document.body).height());//浏览器时下窗口文档body的高...
分类:
Web程序 时间:
2015-01-19 12:29:57
阅读次数:
179
当我们要给一个页面自适应,所有的都要用上百分比的时候,往往给最外面div加百分比时无效,究其原因是它是相对父级的,外层(父级)的元素必须指定height(百分比)
分类:
其他好文 时间:
2015-01-19 12:17:56
阅读次数:
94
使用AJAX分页
table{ margin:80px 600px; }
td{ width:50px; height:auto}
div{ width:50px; height:30px; border:1px solid Black; background-color:lavender; line-height:30px ; t...
分类:
Web程序 时间:
2015-01-19 00:15:02
阅读次数:
266
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.思路:题目看上去好像很难,但实际上很简单,递归做就行,每次找到左右子树对应的子链表...
分类:
其他好文 时间:
2015-01-18 21:03:17
阅读次数:
241
关于图像直方图均衡化的原理和步骤先不作讨论,我就看看代码吧。 private Bitmap picequalization(Bitmap basemap, int width, int height) { Bitmap retmap = new Bitmap(b...