✨ CSS Text Shadow Generator
ToolBox
🔤 文字顏色
🖼️ 背景
📐 計算公式 / 原理
text-shadow 圖層引數化:X 偏移 / Y 偏移 / 模糊半徑 / 顏色 / 不透明度(%)五引數決定單層陰影,多層可疊加,預覽即時按引數渲染
按 offset-x / offset-y / blur / color 拼裝 text-shadow 宣告,支援多層疊加,即時預覽並複製;用於標題與標語的質感效果。
📏 字號
Tune the offset, blur and colour of a text shadow and copy CSS text-shadow code for headings and taglines.
📚 深度解析:CSS 文字陰影生成器
💡 常見使用場景
- 標題描邊/發光。
- 水印文字。
- 霓虹效果。
生成霓虹發光字
❓ 常見問題(FAQ)
- 多層怎麼排?
- 逗號分隔,先畫的後層疊在下。結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
- 生成的程式碼/圖片能直接用嗎?
- 可直接複製使用,建議粘到專案後在瀏覽器實測微調;本工具只生成不託管。
- 會儲存或上傳我的內容嗎?
- 結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Parameter order | offset-x, offset-y, blur-radius, colour; negative offsets shift up-left | CSS Text Decoration Level 3 |
| No layout impact | text shadows are outside the box model and may be clipped | CSS Text Decoration Level 3 |
| Legibility | insufficient shadow contrast harms legibility | WCAG 2.2 (1.4.3) |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準