手機端網頁web開發要點

1.初始化css

<!DOCTYPE html>html

<html>web

 

<head>chrome

  <meta http-equiv="Content-Typecontent="text/html; charset=utf-8" />app

  <meta name="viewportcontent="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>學習

  <meta name="MobileOptimized" content="320">網站

  <meta name="format-detection" content="telephone=no">ui

  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">google

  <meta name="author" content="johnye">chrome-extension

  <meta name="copyright" content="Copyright (c) 1998-2013 Tencent.">

  <meta name="description" content="手機騰訊網">

  <meta name="apple-mobile-web-app-capable" content="yes">

  <meta name="apple-mobile-web-app-status-bar-style" content="black">

  <title>screen_capture_injected="true" - Google 搜索</title>

  <link href="/images/apple-touch-icon-120x120.png" rel="apple-touch-icon" sizes="120x120">

  <link type="text/css" rel="stylesheet" href="chrome-extension://ckphchjljlekndhjifdfpmmnlaijimcd/style.css">

</head>

<body screen_capture_injected="true" huaban_collector_injected="true" bcloud="bcloud_1.2" youdao="bind">//摘自騰訊手機端

 <body class="srp tbo" lang="zh-CN" marginheight="3" topmargin="3" id="gsr" screen_capture_injected="true" huaban_collector_injected="true" youdao="bind">//摘自騰google手機端

 

</body>

</html>

以上加粗部分必定要寫

如下爲騰訊教育網頁版的兩個mate標籤,涉及到description 和 keywords

<meta name="description" content="騰訊教育是中國用戶量最大的教育門戶網站,將國內外優秀教育信息資源和強大的產品服務緊密結合。下設考試、外語、出國、校園、博客等欄目,是在校學子及在職人員的在線充電平臺。">

<meta name="keywords" content="騰訊教育頻道,招生,考試,高考,大學,高校,學生,學院,成考,民辦,自考,遠程,網校,研究生,考研,培訓,外語,英語,四六級,雅思,託福,留學,出國,司法,公務員,會計,學習,校園,老師,家長,名師,男生,女生,校花,校草,edu,bbs,school,English,campus,learning">

相關文章
相關標籤/搜索