简体   繁体   English

如何在Wordpress中将自定义样式覆盖到Useragent样式表?

[英]How can i override my custom styles to useragent stylesheet in wordpress?

I'm facing problem while i'm giving any styles to input checkbox there is not getting any changes because of user agent styles. 我在给任何样式输入复选框时遇到问题,但是由于用户代理样式而没有任何更改。 and i have tried it using custom class also still not getting any styles.. if having any solution then please share.. 并且我尝试过使用自定义类也仍然没有得到任何样式..如果有任何解决方案,那么请分享..

You can't really style checkboxes directly, most CSS3 workarounds involve using pseudo selectors on labels. 您实际上不能直接设置复选框的样式,大多数CSS3解决方法都涉及在标签上使用伪选择器。

I'd recommend looking into checkbox specific styling, try the following resources: 我建议您查看复选框的特定样式,尝试以下资源:

http://code.stephenmorley.org/html-and-css/styling-checkboxes-and-radio-buttons/ http://code.stephenmorley.org/html-and-css/styling-checkboxes-and-radio-buttons/

http://webdesign.tutsplus.com/articles/quick-tip-easy-css3-checkboxes-and-radio-buttons--webdesign-8953 http://webdesign.tutsplus.com/articles/quick-tip-easy-css3-checkboxes-and-radio-buttons--webdesign-8953

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM