一、meta的使用 1、<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/> 强制让文档的宽度与设备 ...
分类:
移动开发 时间:
2016-07-30 16:48:32
阅读次数:
281
An HTTP message can contain a number of headers describing properties of the message such as the content length, content type and so on. HttpClient pr ...
分类:
Web程序 时间:
2016-07-30 13:21:19
阅读次数:
149
修改Apache配置文件 第一步,添加两个模块 第二步,配置压缩文件类型 第三步,重启Apache,刷新页面,看看Response里面是不是多了Content-Encoding:gzip ...
分类:
Web程序 时间:
2016-07-30 11:56:48
阅读次数:
166
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1 ...
分类:
其他好文 时间:
2016-07-30 11:50:01
阅读次数:
217
<Button android:id="@+id/btn1" android:layout_width="wrap_content" //包裹文字 android:layout_height="wrap_content" android:text="点我" /> ...
分类:
其他好文 时间:
2016-07-29 22:45:47
阅读次数:
202
参考:http://blog.csdn.net/zhaokaiqiang1992/article/details/45419023
支持各种屏幕尺寸遵循的原则:
使用wrap_content,match_parent,weight(尽量避免把控件大小写死比如40dp)
使用相对布局,禁用绝对布局 补充:(线性布局适用于有一定比例关系的情况,与Weigh配合使用)
使用限定符
使用自动...
分类:
移动开发 时间:
2016-07-29 21:33:26
阅读次数:
217
<EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxLength="4" //限制我们的输入字数 android:singleLine="true" //限制我们输入 ...
分类:
移动开发 时间:
2016-07-29 21:17:22
阅读次数:
184
在head标签中添加一行代码:<html>
<head>
<metaname="renderer"content="webkit|ie-comp|ie-stand">
</head>
</html>content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用webkit内核,IE兼容内核,IE标准内核。若页面需默认用..
分类:
Web程序 时间:
2016-07-29 19:43:01
阅读次数:
197
内容提供器(Content Provider)是Android开发中的专用术语,它所指的就是一个包含数据的数据库,通常是SQLite形式的数据库,由Android操作系统内置的功能进行驱动 通过Android内容提供器,可以访问可共享的数据结构,通常称为数据库(Datebase),基本步骤如下: 1 ...
分类:
其他好文 时间:
2016-07-29 19:04:53
阅读次数:
214
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> 1.w ...
分类:
移动开发 时间:
2016-07-29 17:12:58
阅读次数:
276