← 全部工具

CSS 區塊分隔線產生器

產生響應式 SVG 區塊分隔線,調整形狀、高度、振幅和翻轉方向。

css-separator-generator本機處理

正在啟用本機工具…

工具設定

將匯出的 SVG 放進 .section-separator 容器即可使用包裝樣式。預覽會縮放較高的分隔線。

設定只留在本頁。重新載入後會恢復預設值。

功能參考查閱日期 2026-11-21 · ZeroServer

即時預覽與匯出

CSS

.section-separator {
  display: block;
  width: 100%;
  height: 120px;
  line-height: 0;
}

.section-separator svg {
  display: block;
  width: 100%;
  height: 100%;
}

SVG

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" width="100%" height="120" preserveAspectRatio="none" aria-hidden="true">
  <path d="M0 103.2 C100 65.42 220 65.42 400 103.2 S700 65.42 800 65.42 S1100 103.2 1200 65.42 L1200 120 H0 Z" fill="#6366f1"/>
</svg>

如何使用這個工具

選擇預設或修改設定,查看即時預覽,再複製或下載樣式,以及可用的標記。

不適合用在什麼情況

請在實際使用匯出樣式的元件驗證色彩對比、位置及瀏覽器行為。