這些元數據通常被添加到頁面標題中。
& ltmeta http-equiv = " X-UA-Compatible " content = " IE = edge,chrome = 1 " & gt;
& ltmeta name = " WAP-font-scale " content = " no " & gt。
& ltmeta name = " viewport " content = " width = device-width,minimum-scale=1,maximum-scale=1,user-scalable=no " >
& ltmeta name = " apple-mobile-we b-app-capable " content = " yes "/& gt;
& lt!-忽略頁面中的號碼識別,如電話號碼和電子郵件識別-& gt;
& ltmeta name = " format-detection " content = " telephone = no,email = no "/& gt;
& lt!-啟用360瀏覽器的WebKit->;
& ltmeta name = " renderer " content = " WebKit " & gt;
& lt!-避免IE使用兼容模式(這個適合PC)-& gt;
& ltmeta http-equiv = " X-UA-Compatible " content = " IE = edge " & gt;
& lt!- ?針對手持設備的優化,主要是針對壹些不識別視口的老瀏覽器,比如BlackBerry->;
& ltmeta name = " handled friendly " content = " true " & gt;
& lt!- uc強制豎屏-& gt;
& ltmeta name = " screen-orientation " content = " portrait " >
& lt!- QQ強制豎屏-& gt;
& ltmeta name = " X5-orientation " content = " portrait " >
& lt!- UC強制全屏-& gt;
& ltmeta name= "全屏" content = " yes " & gt
& lt!- QQ強制全屏-& gt;
& ltmeta name = " X5-full screen " content = " true " >
& lt!- UC應用模式-& gt;
& ltmeta name = " browser mode " content = " application " >
& ltscript type = " text/JavaScript " & gt;
?(函數(d,c){
var e=d.documentElement,
?窗口中的a="orientationchange "?" orientationchange ":"調整大小",
?b =函數(){
var f = e.clientWidth
如果(!f){return}
if(f & gt;=750){
e.style.fontSize="100px "
}否則{
e . style . font size = 100 *(f/750)+" px "
}
?};
?如果(!d.addEventListener){return}
?b();
?c.addEventListener(a,b,false);
?d . addevent listener(" DOMContentLoaded ",b,false)
}
?)(文檔,窗口);
& lt/script & gt;