惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
博客园 - 【当耐特】
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
D
Docker
GbyAI
GbyAI
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
The Cloudflare Blog
雷峰网
雷峰网
A
About on SuperTechFans
小众软件
小众软件
博客园 - Franky
博客园 - 聂微东
F
Full Disclosure
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
MongoDB | Blog
MongoDB | Blog
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
V2EX
Engineering at Meta
Engineering at Meta
宝玉的分享
宝玉的分享
aimingoo的专栏
aimingoo的专栏
量子位
P
Proofpoint News Feed
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
罗磊的独立博客
Martin Fowler
Martin Fowler
D
DataBreaches.Net
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Secure Thoughts
Project Zero
Project Zero
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
S
Schneier on Security
Blog — PlanetScale
Blog — PlanetScale
The Hacker News
The Hacker News
Spread Privacy
Spread Privacy
Security Latest
Security Latest
NISL@THU
NISL@THU
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
CXSECURITY Database RSS Feed - CXSecurity.com
J
Java Code Geeks

博客园 - antony.net

2011年国内五款值得关注网店系统 Enterprise Architect 7 入门教程大全 Enterprise Architect 业务过程建模 不同浏览器处理后退的一些异同 - antony.net - 博客园 23个.NET开源项目 mysql 存储过程 游标 js代码库 table css 固定表头 - antony.net Hash Tables in Javascript 在非UI线程中改变UI控件属性的通用方法 RSClientPrint打印 统计sql语句 文档格式批量转换(doc,txt,pdf等) 了解HTTP Headers的方方面面 XmlSerializer 常见问题疑难解答 webservices 水晶报表 - antony.net - 博客园 Build a Custom RadioButton Cell and Column for the DataGridView Control .NET 2.0 - WinForm Control - DataGridView 编程36计(二)
移动版网页自动缩放问题
antony.net · 2013-07-08 · via 博客园 - antony.net

最近才开始接触开发移动版网页碰到许多问题,尤其是页面的大小缩放问题。看了一些别的移动版网站的源代码发现在head里面多了一个meta标签,代码如下:

1

<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.5, user-scalable=yes">

查找了一下相关资料才算是明白了上面那行代码的意思:

target-densitydpi=device-dpi :在做手机版的页面时,如果使用了此属性那么页面中的内容会很小,好像分辨率越大的手机屏幕显示的效果越小,如果不用这个属性那么手机浏览器会自动放大到一定大小(这个应该是手机默认的)便于阅读效果。据说平板电脑用这个属性比较好。

width=device-width :设置了这个属性后页面的宽度就不会超过屏幕的宽度,即页面的宽度等于屏幕的宽度。

initial-scale=1.0 :页面初始放大或缩小的比例,1.0则表示没有放大或缩小。

minimum-scale=1.0 :页面缩小的最小的比例。1.0则表示页面缩小的比例最小为1。0倍,即原始的大小。

maximum-scale=1.5 :页面放大最大的比例。1.5则表示页面放大的比例最大为1.5倍。

user-scalable=yes :设置页面是否可以放大缩小。yes表示可以,no则表示不可以。

刚刚接触移动版网页的开发,记录一下。

纯HTML+CSS打造组织架构图:http://www.xiaoboy.com/detail/1341545068.html

SaySlide,基于jQuery的焦点图

http://www.xiaoboy.com/Plugins/Sayslide2/