在做html5的页面时,经常遇到页面内容太少撑不起来整个手机屏幕的高度。
我们经常使用min-height来处理,比如min-height:568px; 对应的是iPhone5 的高度;
而这样iPhone6plus下方就会出现空白。
而如果设置 min-height:736px; iPhone5的话就会出现滚动条;
此时我们可以使用
position:absolute;
left:0;...
分类:
移动开发 时间:
2015-02-06 11:15:29
阅读次数:
154
无标题文档
table tr td{ border-top:#FF0000 solid 1px; background-color:#00CC33; text-align:center; line-height:24px;}
$(document).ready(function(){
printDate();
});
function printDate(){
var ht...
分类:
Web程序 时间:
2015-02-06 09:30:12
阅读次数:
147
popuWindowXml布局<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="wrap_content"android:layout_height="wrap_content"android:background="@drawable/local_popup_bg"android:..
1,xml布局<TabHostxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:id="@android:id/tabhost"android:layout_height="match_parent"><LinearLayoutandroid:la..
分类:
其他好文 时间:
2015-02-06 07:08:36
阅读次数:
158
body { background-color: #F2F2F2; text-align: center;}.container { position: relative; width: 500px; height: 500px; margin: 0 auto;}...
分类:
Web程序 时间:
2015-02-06 00:42:27
阅读次数:
188
红色框框部分的内容不显示 删除了或者增加内容,浏览器没有反应。 这里的高度应该是 height:365px;后来设置 3650px 显示出来了。设置margin-top也是无效的html部分 淘宝 ...
分类:
Web程序 时间:
2015-02-05 20:00:21
阅读次数:
231
EasyUI加载效果
body{font-size:12px}
.datagrid-mask{position:absolute;left:0;top:0;width:100%;height:100%;opacity:.5;filter:alpha(opacity=30);background-color:#e0ecff;display:none}
.datagr...
分类:
Web程序 时间:
2015-02-05 18:27:59
阅读次数:
156
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe...
分类:
其他好文 时间:
2015-02-05 16:29:09
阅读次数:
135
首先在AndroidMainifest中添加上网权限
布局文件activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match...
分类:
移动开发 时间:
2015-02-05 16:25:57
阅读次数:
173
1 533 //宽 7 [1] => 300 //高 8 [2] => 2 //图片类型 jpg 9 [3] => width="533" height="300" 10 [bits] => 8 11 [chann...
分类:
Web程序 时间:
2015-02-05 13:11:32
阅读次数:
276