解决手机访问网站时整体相对屏幕缩小问题?(已解决)
自己开发出来的网站,在手机上访问时,总是整体小了一块,不能很好的适应屏幕,每次都要用手指再放大到合适尺寸,后发现,需要在开发代码中添加:
(可添加到第一行)
参数说明:
width - viewport的宽度 height - viewport的高度
initial-scale - 初始的缩放比例
...
分类:
移动开发 时间:
2014-07-14 17:44:06
阅读次数:
226
<?php//验证码类classp_w_picpath{protected$im;protected$img_width;protected$img_height;protected$img_type;//生成随机数staticpublicfunctionrandStr($n=4){if($n<=0){return‘‘;}$str=‘abcdefghijkmnpqrstuvwxyzABCDEFGHIJKMNPQRSTUVWXYZ0123456789‘;$str=substr(st..
分类:
Web程序 时间:
2014-07-14 12:16:07
阅读次数:
287
通过google在线生成二维码的api在线生成二维码。代码: 二维码生成-www.jbxue.com $content "; echo "你选择的宽度是: $width "; echo "你选择的高度是: $height "; echo "生成的二维码图像是: "; $wen = ...
// 黑白效果函数 public static Bitmap changeToGray(Bitmap bitmap,boolean r, boolean g, boolean b) { int width, height; width = bitmap.getWidth(); height...
分类:
其他好文 时间:
2014-07-14 10:09:38
阅读次数:
180
1.枚举法(超时) 1 public class Solution { 2 public int largestRectangleArea(int[] height) { 3 int max=-1; 4 for(int i=0;i=0&&height[k] s...
分类:
其他好文 时间:
2014-07-14 08:22:17
阅读次数:
373
.box{ width: 100px; height: 100px; border: 1px solid #ccc; border-radius: 5px; margin-bottom: 15px; } .out, ...
分类:
Web程序 时间:
2014-07-14 00:16:57
阅读次数:
305
先上效果图:
这里做一个左右旋转,上下旋转,和左右移动的动画,先自己建立一个View的类,作为操作的对象:
public class MyView extends View {
private Paint mPaint;
int width = 0;
int height = 0;
public MyView(Context context, AttributeSet a...
分类:
移动开发 时间:
2014-07-13 16:51:00
阅读次数:
344
var imgLoad = function (url, callback) { var img = new Image(); img.src = url; if (img.complete) { callback(img.width, img.height); ...
分类:
Web程序 时间:
2014-07-13 08:00:35
阅读次数:
262
百度地图
前端时间,因项目需要加入了谷歌地图,但是由于谷歌换了接口,对谷歌地图市区耐心了,还是使用国产的百度吧,先走起来。
如果你有百度账号,那就可以搜索百度地图开发者中心,去申请密钥(ak),然后就可以使用了,先来个hello world吧。
百度地图的Hello, World
body, html,#allmap {width: 100%;height: 100%;over...
分类:
其他好文 时间:
2014-07-12 21:19:47
阅读次数:
275
//定义结构
Box.h:
#ifndef BOX_H
#define BOX_H
struct Box{
double length;
double width;
double height;
double volume();
};
#endif
//定义volume方法
t1.cpp:
#include "box.h"
double Box::volume(...
分类:
编程语言 时间:
2014-07-12 17:25:50
阅读次数:
152