Web笔记··By/蜜汁炒酸奶

使网站兼容手机版本的代码

只需在头信息<head></head>下放入如下代码即可

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
	<meta content="telephone=no" name="format-detection" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
1
2
3
4

预览
Loading comments...
3 条评论
  • W

    还要好多css

  • W

    这个代码 我的站可以用么?

example
预览