未提供有效的 Apple-touch-icon
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如果 iOS Safari 使用者新增漸進式網頁應用程式 (PWA),
主畫面顯示的圖示稱為 Apple Touch 圖示。
您可以加入
在您的 <head>
中的 <link rel="apple-touch-icon" href="/example.png">
標記
頁面。如果您的網頁沒有這個連結代碼,iOS 會擷取
網頁內容也就是說,指示 iOS 下載圖示,結果更加精美
使用者體驗
Lighthouse Apple 觸控圖示稽核失敗情形
Lighthouse
標記沒有 <link rel="apple-touch-icon" href="/example.png">
的網頁
<head>
中的標記:
Lighthouse 不會檢查圖示是否確實存在,或圖示是否
設定正確的大小
如何新增 Apple 觸控圖示
在網頁的 <head>
中加入 <link rel="apple-touch-icon" href="/example.png">
:
<!DOCTYPE html>
<html lang="en">
<head>
…
<link rel="apple-touch-icon" href="/example.png">
…
</head>
…
將 /example.png
替換為圖示的實際路徑。
,瞭解如何調查及移除這項存取權。
為提供良好的使用者體驗,請確認下列事項:
- 圖示為 180x180 像素或 192x192 像素
- 為圖示指定的路徑有效
- 圖示的背景沒有透明
資源
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-04-16 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{"lastModified": "\u4e0a\u6b21\u66f4\u65b0\u6642\u9593\uff1a2024-04-16 (\u4e16\u754c\u6a19\u6e96\u6642\u9593)\u3002"}
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-04-16 (世界標準時間)。"],[],[]]