bootstrap入门

文档地址:https://getbootstrap.com/docs/3.4/css/#forms

所有前提:必须放到:container中

混合布局(适配多个设备)

偏移:

效果:

排版管理:

 

例子:

 

文字对齐

列表:

效果:

列表:

 

表格:

form表单

一行的

垂直表单

 

单选和复选框:

<div class="checkbox">
  <label>
    <input type="checkbox" value="">
    Option one is this and that&mdash;be sure to include why it's great
  </label>
</div>
<div class="checkbox disabled">
  <label>
    <input type="checkbox" value="" disabled>
    Option two is disabled
  </label>
</div>

<div class="radio">
  <label>
    <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
    Option one is this and that&mdash;be sure to include why it's great
  </label>
</div>
<div class="radio">
  <label>
    <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
    Option two can be something else and selecting it will deselect option one
  </label>
</div>
<div class="radio disabled">
  <label>
    <input type="radio" name="optionsRadios" id="optionsRadios3" value="option3" disabled>
    Option three is disabled
  </label>
</div>

图片

自动缩放:

 

图片形状;

辅助类

文字变色:

文字背景

关闭下拉图标:

 

左右浮动;

清除浮动

显示隐藏

组件:https://getbootstrap.com/docs/3.4/components/

图标的用法;

 

标记:

https://getbootstrap.com/docs/3.4/components/#labels

缩略图:

https://getbootstrap.com/docs/3.4/components/#page-header

提示信息:(不是对话框,是跟在输入框后面的提示)

https://getbootstrap.com/docs/3.4/components/#alerts

进度条:

https://getbootstrap.com/docs/3.4/components/#progress

js 总目录https://getbootstrap.com/docs/3.4/customize/

js https://getbootstrap.com/docs/3.4/javascript/

 

提示信息:

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值