vb.net 如何更改 CheckBox 矩形大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22627723/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 17:12:15 来源:igfitidea点击:
How to change the CheckBox rectangle size
提问by Malar
I am Working With ASP VB.net in that I have A checkBox ,I want to change the Size Of that checkbox I added css to change but its not working the outer portion only get changing the rectangle remains same . can somebody help me ?
我正在使用 ASP VB.net,因为我有一个复选框,我想更改该复选框的大小,我添加了 css 进行更改,但它不起作用,外部部分只能更改矩形保持不变。有人可以帮我吗?
<asp:CheckBox ID="chkDate" width="83pt" runat="server" Height="20px"
style="text-align: right; font-size:small"
BorderStyle="None" autosize="false" size="250px" EnableViewState="False" />
回答by christine
Use CSS
使用 CSS
<style type="text/css">
.BigCheckBox input {width:20px; height:20px;}
</style>
In asp.net,
在asp.net中,
<asp:CheckBox ID="CheckBox1" runat="server" CssClass="BigCheckBox" />

