---
title: "Discussion on \"#60 利用 checkbox，做到純 CSS 開關網頁選單、收合側邊欄\" | Hashnode"
description: "Discussion on \"#60 利用 checkbox，做到純 CSS 開關網頁選單、收合側邊欄\". ⚠️ 本篇文章已搬遷至 css.im1010ioio.dev，請至新站閱讀完整版。\n\n\n上篇我們教了大家如何客製化 checkbox 與 radio 樣式，其實運用同樣的原理，我們也可以做到簡單的互相切換（toggle）行為，例如：「點了就開，再點就關」這種動作。\n所以，今天我們來做簡單的網頁選單吧！\n\n基本概念\n幫大家複習一下要用的小技巧…"
url: "https://hashnode.com/posts/css-sidebar/689c77b6493d052a0f87cc75"
---

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

Discussion

# [#60 利用 checkbox，做到純 CSS 開關網頁選單、收合側邊欄](https://im1010ioio.hashnode.dev/css-sidebar?utm_source=hashnode&utm_medium=feed)

⚠️ 本篇文章已搬遷至 css.im1010ioio.dev，請至新站閱讀完整版。 上篇我們教了大家如何客製化 checkbox 與 radio 樣式，其實運用同樣的原理，我們也可以做到簡單的互相切換（toggle）行為，例如：「點了就開，再點就關」這種動作。 所以，今天我們來做簡單的網頁選單吧！ 基本概念 幫大家複習一下要用的小技巧…

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

-   [#css](https://hashnode.com/tag/css)
-   [#css3](https://hashnode.com/tag/css3)
-   [#css-animation](https://hashnode.com/tag/css-animation)
-   [#sidecar-container](https://hashnode.com/tag/sidecar-container)
-   [#sidebar](https://hashnode.com/tag/sidebar)
-   [#animation](https://hashnode.com/tag/animation)
-   [#css-animations](https://hashnode.com/tag/css-animations)

## 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.
