Tùy chỉnh thanh cuộn

Tùy chỉnh màu và kích thước thanh cuộn, rồi sao chép CSS.

Công cụ tùy chỉnh CSS thanh cuộn miễn phí

Thanh cuộn mặc định của trình duyệt không phải lúc nào cũng hợp thiết kế. Dokall cho phép chọn màu track và thumb, đặt độ rộng và xem trước trực tiếp trước khi sao chép CSS.

CSS được tạo bao gồm rule tương thích WebKit và Firefox. Dán snippet vào stylesheet để có trải nghiệm cuộn chỉn chu, đúng thương hiệu.

Frequently Asked Questions

What CSS does this tool generate?
Dokall generates CSS for custom scrollbar styling using both WebKit pseudo-elements (::-webkit-scrollbar) and the standard scrollbar-width and scrollbar-color properties. Copy the CSS into your stylesheet.
Do custom scrollbars work in all browsers?
WebKit scrollbar styles work in Chrome, Safari, Edge, and Opera. Firefox uses scrollbar-width and scrollbar-color. For cross-browser support, include both sets of rules. The tool generates both automatically.
Can I preview the scrollbar before copying?
Yes. Adjust colors, width, border radius, and track styling in the live preview panel. The preview scrollbar updates in real time as you change settings.
Will custom scrollbars affect performance?
No. Scrollbar CSS is purely visual and has no measurable performance impact. The browser renders the scrollbar using your colors and dimensions instead of the system default.
Can I style scrollbars in a React or Vue app?
Yes. Copy the generated CSS into a global stylesheet or a CSS module. For component-scoped styles, apply the scrollbar rules to a container class. WebKit pseudo-elements do not work with CSS-in-JS inline styles - use a stylesheet.