How do you select a radio button in css?

前端 未结 1 1189
梦谈多话
梦谈多话 2021-02-11 13:13

How do you select a radio button in CSS? The HTML I am working with is generated so I cannot add class or other attributes to it.

I found input[type=\"radio\"] on the

相关标签:
1条回答
  • 2021-02-11 14:04

    input[type="radio"] is an example of an attribute selector. It's part of the CSS3 spec and is perfectly legal. The only browser that doesn't support them is IE6. If supporting IE6 is important to the project, then you should look into adding classes to the radio buttons in question.

    Here's an article with an example of how to effectively use attribute selectors. Check out this article for more info on CSS3 goodies.

    0 讨论(0)
提交回复
热议问题