BLOG
Enjoy when you can, and endure when you must.
NOV 09, 2013/CSS
WinPhone中IE的字体大小

在Windows Phone中,经常会看到网页中的文字被默认放大了,这可算是一个功能特色吧,不过时常会让页面变得很难看。

关于这个功能的描述,微软官方网站中是这样描述的:

Internet Explorer for Windows Phone gives developers the option to control the webpage text size by setting the–ms-text-size-adjust CSS property. When the user double-taps a page element, Internet Explorer for Windows Phone scales the viewport to position the double-tapped element within the visible area of the screen. The corresponding text also is scaled to a legible size. Developers may choose to either control the adjusted text size or turn it off.

介于我比较反感,因此选择关闭该功能,即设置:

html { -ms-text-size-adjust:none }
COMMENTS
LEAVE COMMNT