Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css] 第143天 如何自定义radio按钮的样式 #1158

Open
haizhilin2013 opened this issue Sep 5, 2019 · 1 comment
Open

[css] 第143天 如何自定义radio按钮的样式 #1158

haizhilin2013 opened this issue Sep 5, 2019 · 1 comment
Labels
css css

Comments

@haizhilin2013
Copy link
Collaborator

第143天 如何自定义radio按钮的样式

@haizhilin2013 haizhilin2013 added the css css label Sep 5, 2019
@EragonBubble
Copy link

选择器 input[type=“radio”]


现在几乎不用原生的radio,一是原生样式改成设计稿的样子太浪费时间,二是不同浏览器对于原生radio的展示还不一样。

基于状态驱动的思想,用自定义按钮或其他元素来替代radio,很容易实现,也能保证浏览器兼容性。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css css
Projects
None yet
Development

No branches or pull requests

2 participants