未提供有效的 Apple-touch-icon
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
iOS Safari 使用者將漸進式網頁應用程式 (PWA) 新增至主畫面時,該圖示會顯示為「Apple 觸控圖示」。
只要在網頁的 <head>
中加入 <link rel="apple-touch-icon" href="/example.png">
標記,即可指定應用程式應使用的圖示。如果您的頁面沒有這個連結標記,iOS 會擷取網頁內容的螢幕截圖並產生圖示。換句話說,指示 iOS 下載圖示可帶來更優質的使用者體驗。
Lighthouse Apple 觸控圖示稽核失敗情形
Lighthouse 會標記 <head>
中沒有 <link rel="apple-touch-icon" href="/example.png">
標記的網頁:
Lighthouse 不會檢查圖示是否確實存在,或圖示大小是否正確。
如何新增 Apple Touch 圖示
將 <link rel="apple-touch-icon" href="/example.png">
加到網頁的 <head>
中:
<!DOCTYPE html>
<html lang="en">
<head>
…
<link rel="apple-touch-icon" href="/example.png">
…
</head>
…
請將 /example.png
替換成圖示的實際路徑。
為提供良好的使用者體驗,請確認下列事項:
- 圖示大小為 180 x 180 像素或 192 x 192 像素
- 指定的圖示路徑有效
- 圖示的背景不透明
資源
除非另有註明,否則本頁面中的內容是採用創用 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":"其他"
}]