響應式布局中重要的meta標簽設置.適用於手機瀏覽器兼容性設置


<!-- #手機瀏覽器兼容性設置 -->
   <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
   <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
   <meta content="no-cache" http-equiv="pragma">
   <meta content="0" http-equiv="expires">
   <meta content="telephone=no, address=no" name="format-detection">
   <meta content="width=device-width, initial-scale=1.0" name="viewport">
   <meta name="apple-mobile-web-app-capable" content="yes" />
   <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
   <!-- #手機瀏覽器兼容性設置 -->


粘貼到頂部后和原來的meta標簽對齊.
可以實現響應式布局.



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM