--- tags: CSS, disqus: hackmd --- # user-select|chrisHsiao 使用div做按鈕的綁定click事件的時候,很容易遇到在快速點擊同一個div時,div裡的文字會反藍。  要消除這個問題可以使用CSS的user-select,輕鬆解決。 ```css= div { user-select: none; } ``` #### 參考文章 [user-select](https://developer.mozilla.org/zh-CN/docs/Web/CSS/user-select)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up