bootstrap基础

全局样式

辅助类

<p class="text-center">内容居中</p>

表单

<form class="" method="post" action="http://127.0.0.1:8000/signup">
                <div class="form-group">
                    <label for="input_name">用户名</label>
                    <input class="form-control" type="text" name="name" id="input_name">
                </div>
                <div class="form-group">
                    <label for="input_password">密码</label>
                    <input class="form-control" type="password" name="password" id="input_password">
                </div>
                <div class="form-group">
                    <label for="input_password_again">确认密码</label>
                    <input class="form-control" type="password" name="password_again" id="input_password_again">
                </div>
                <div class="form-group">
                    <label for="input_gender">性别</label>
                    <select class="form-control" name="gender" id="input_gender">
                        <option value="m"></option>
                        <option value="f"></option>
                        <option value="x">保密</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="input_avator">头像</label>
                    <input class="form-control" type="file" name="avator" id="input_avator">
                </div>
                <div class="form-group" name="avator">
                    <label for="input_intro">个人简介</label>
                    <textarea class="form-control" rows="5" cols="38" name="intro" id="input_intro"></textarea>
                </div>
            </form>

这里写图片描述

常用组件

jumbotron

<div class="jumbotron">
  <h1>Hello, world!</h1>
  <p>...</p>
  <p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
</div>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
真的很不错的模板 <html <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>Ext 做的后台管理系统</title> <style type="text/css"> body{ font-size:12px; background-image: url(images/bg.gif); background-repeat: repeat; } ul,li,h2{margin:0;padding:0;} ul{list-style:none;} #top{ width:909px; height:26px; background-image: url(images/h2bg.gif); margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto; background-repeat: repeat-x; } #top h2{ width:150px; height:24px; float:left; font-size:12px; text-align:center; line-height:20px; color:#0066FF; font-weight: bold; padding-top: 2px; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #99BBE8; border-left-color: #99BBE8; } #top .jg { width: 5px; float: left; background-color: #DCE6F5; height: 26px; } #topTags{ width:740px; height:24px; float:left; margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto; padding-top: 2px; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #99BBE8; border-left-color: #99BBE8; padding-left: 10px; } #topTags ul li{ float:left; width:100px; height:21px; margin-right:4px; display:block; text-align:center; cursor:pointer; padding-top: 3px; color: #15428B; font-size: 12px; } #main{ width:909px; height:501px; background-color:#F5F7E6; margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto; } #main .jg { width: 5px; float: left; background-color: #DFE8F6; height: 500px; } #leftMenu{ width:150px; height:500px; background-color:#DAE7F6; float:left; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #99BBE8; bor

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值