自定义MVC4剃须刀中的复选框 [英] Customize checkbox in MVC4 razor

查看:41
本文介绍了自定义MVC4剃须刀中的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在MVC4剃须刀中自定义复选框实际上,我想根据我改变它的高度和宽度。我该怎么做?

I want to customize checkbox in MVC4 razor Actually , i want to change its height and width according to me . How can i do this ?

推荐答案

<b>There is helper used to render CheckBox in MVC4 Razor its the Html.Checkbox.
Helpers are not controls by itself, they simply generate html markup.
if you wanted to change the height and width of checkbox then you would use the third overload to do this. The overload accepts the name and html attributes where you can pass style class which is where you can change height and width in the css style sheet.</b>


这篇关于自定义MVC4剃须刀中的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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