bootstrap css选择不同的宽度

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

               

刚开始使用bootstrap css开源项目。遇到一个问题,默认的input 宽度太大,需要找小一点的。

其实只需要在input tag中选用预定义的较小的宽度即可。比如:

<input type="number" class="input-small"></input>


input-small是预定义的一种类别,在bootstrap.css文件中有一组这样的类别:

.input-miniwidth: 60px;}.input-smallwidth: 90px;}.input-mediumwidth: 150px;}.input-largewidth: 210px;}.input-xlargewidth: 270px;}.input-xxlargewidth: 530px;}



扫描二维码关注公众号,回复: 4107232 查看本文章


           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

这里写图片描述

猜你喜欢

转载自blog.csdn.net/fduffyyg/article/details/84138404