移動平台前端開發之WebApp代碼技巧

來源:互聯網
上載者:User

標籤:style   blog   http   strong   width   html   

1、首先我們來看看webkit核心中的一些私人的meta標籤,這些meta標籤在開發webapp時起到非常重要的作用

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

第一個meta標籤表示:強制讓文檔的寬度與裝置的寬度保持1:1,並且文檔最大的寬度比例是1.0,且不允許使用者點擊螢幕放大瀏覽;
第二個meta標籤是iphone裝置中的safari私人meta標籤,它表示:允許全螢幕模式瀏覽;
第三個meta標籤也是iphone的私人標籤,它指定的iphone中safari頂端的狀態條的樣式;
第四個meta標籤表示:告訴裝置忽略將頁面中的數字識別為電話號碼

 

文章摘自http://blog.sina.com.cn/s/blog_655388ed01016vpi.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.