[英]How to change the bootstrap multiselect dropdown height and font size?
I am trying to do a multiselect dropdown using bootstrap similar to the demo which is mentioned in the link below. 我正在尝试使用类似于下面链接中提到的演示的引导程序进行多选下拉列表。
http://www.aspsnippets.com/Articles/Multiple-Select-MultiSelect-DropDownList-with-CheckBoxes-in-ASPNet-using-jQuery.aspx http://www.aspsnippets.com/Articles/Multiple-Select-MultiSelect-DropDownList-with-CheckBoxes-in-ASPNet-using-jQuery.aspx
I am able to change the width by using buttonWidth property. 我可以通过使用buttonWidth属性来更改宽度。 But I could not find anything to change the height of the button.
但是我找不到任何可以改变按钮高度的东西。 I also would like to change the font size and font.
我也想更改字体大小和字体。 Kindly help me in finding a way to change the height and font of dropdown.
请帮助我找到一种更改下拉菜单的高度和字体的方法。
If you have same code as in aspsnippets.com. 如果您的代码与aspsnippets.com中的代码相同。 Then you can add this style in the head section (Replace X with number ):
然后,您可以在顶部添加此样式(用数字替换X ):
button.multiselect {
height: Xpx;
font-size: Xpx;
}
Hi Indira you could achieve the change in height & font by simply applying the adding following css 嗨,Indira,您可以通过简单地应用以下CSS来实现高度和字体的更改
.multiselect .dropdown-toggle .btn .btn-default {
height: 62px;
font-family: cursive;
}
Change them according to your needs . 根据您的需要进行更改 。
Note: Please be sure that it would not affect any other element on your page. 注意:请确保它不会影响页面上的任何其他元素。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.