使用 CSS 更改 Asp:CheckBox 的样式/外观 [英] Change Style/Look of Asp:CheckBox using CSS

查看:39
本文介绍了使用 CSS 更改 Asp:CheckBox 的样式/外观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将标准 asp.net 复选框的标准3D"外观更改为实心 1px.例如,如果我尝试将样式应用于边框,它就是这样做的 - 绘制带有边框的标准复选框 - 我猜这是有效的.

I want to change the standard "3D" look of the standard asp.net checkbox to say solid 1px. If I try to apply the styling to the Border for example it does just that - draws the standard checkbox with a border around it - which is valid I guess.

无论如何,有没有办法改变实际文本框的样式?

Anyway, is there a way to change how the actual textbox is styled?

推荐答案

我认为让 CheckBox 看起来真正不同的最好方法是根本不使用复选框控件.最好在超链接或图像元素顶部使用您自己的图像进行选中/未选中状态.干杯.

I think the best way to make CheckBox looks really different is not to use checkbox control at all. Better use your own images for checked/unchecked state on-top of hyperlink or image element. Cheers.

这篇关于使用 CSS 更改 Asp:CheckBox 的样式/外观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆