Bootstrap: wider input field

后端 未结 7 2223
深忆病人
深忆病人 2020-12-23 19:07

How can I make the input field wider than the default in Twitter\'s Bootstrap?

I am trying to create a wider search form in the hero-unit class from th

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 19:31

    I am going to assume you were having the same issue I was. Even though you specify larger sizes for the TextBox and mark it as important, the box would not get larger. That is likely because in your site.css file the MaxWidth is being set to 280px.

    Add a style attribute to your input to remove the MaxWidth like this:

    
    

提交回复
热议问题