---
title: "Discussion on \"#59 客製化 radio、checkbox 樣式，製作開關按鈕 (Switch Button)\" | Hashnode"
description: "Discussion on \"#59 客製化 radio、checkbox 樣式，製作開關按鈕 (Switch Button)\". ⚠️ 本篇文章已搬遷至 css.im1010ioio.dev，請至新站閱讀完整版。\n\n\n在日常前端開發中，radio 和 checkbox 是非常常用的表單元素，但瀏覽器預設的樣式往往不符合設計需求。因此，學會如何客製化這些元素樣式是每個前端設計師的必備技能之一。在這篇教學文中，我們將介紹如何使用 CSS 來客製化 radio 和 checkbox，而且進一步用 checkbox 做出一個開關按鈕 (Switch Button)。\n\nㄧ、改變 checkbox/radio 顏色：accent-c..."
url: "https://hashnode.com/posts/css-switch-button/689c73864f41622ad15e56b9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [#59 客製化 radio、checkbox 樣式，製作開關按鈕 (Switch Button)](https://im1010ioio.hashnode.dev/css-switch-button?utm_source=hashnode&utm_medium=feed)

⚠️ 本篇文章已搬遷至 css.im1010ioio.dev，請至新站閱讀完整版。 在日常前端開發中，radio 和 checkbox 是非常常用的表單元素，但瀏覽器預設的樣式往往不符合設計需求。因此，學會如何客製化這些元素樣式是每個前端設計師的必備技能之一。在這篇教學文中，我們將介紹如何使用 CSS 來客製化 radio 和 checkbox，而且進一步用 checkbox 做出一個開關按鈕 (Switch Button)。 ㄧ、改變 checkbox/radio 顏色：accent-c...

Aug 13, 2025 · 1 min read · im1010ioio.hashnode.dev  
Updated Feb 4  
Read the article

-   [#switch-button](https://hashnode.com/tag/switch-button)
-   [#css](https://hashnode.com/tag/css)
-   [#css3](https://hashnode.com/tag/css3)
-   [#radio-button](https://hashnode.com/tag/radio-button)
-   [#checkbox](https://hashnode.com/tag/checkbox)
-   [#css-animation](https://hashnode.com/tag/css-animation)

## Written by

[YI-LIN CHEN (Eva)](https://hashnode.com/@im1010ioio)

@im1010ioio · Taipei, Taiwan

  
[View profile](https://hashnode.com/@im1010ioio)

ғʀᴏɴᴛᴇɴᴅ ᴅᴇᴠᴇʟᴏᴘᴇʀ / ᴅᴇsɪɢɴᴇʀ / ᴄʀᴇᴀᴛᴏʀ

Chief Designer @HealthyPlate

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
