bootstrap学习

    0.bootstrap 下载地址 http://www.bootcss.com/ php

        手册在线 http://v3.bootcss.com/components/css

  1. 依赖于jquery  引入jquery 再引入bootstrap  ,放在body的最下面     html

    简例前端

  2. <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <title>Bootstrap的HTML标准模板</title>   
            <!-- Bootstrap -->
            <link href="css/bootstrap.min.css" rel="stylesheet">
            <!--你本身的样式文件 -->
            <link href="css/your-style.css" rel="stylesheet">        
            <!-- 如下两个插件用于在IE8以及如下版本浏览器支持HTML5元素和媒体查询,若是不须要用能够移除 -->
            <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
            <![endif]-->
        </head>
        <body>
            <h1>Hello, world!</h1>
            
            <!-- 若是要使用Bootstrap的js插件,必须先调入jQuery -->
            <script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script>
            <!-- 包括全部bootstrap的js插件或者能够根据须要使用的js插件调用 -->
            <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> 
        </body>
    </html>

    3.bootstrap的弹窗。部分不说就是好用啊。。前阵子用layer弹窗,有些小问题啊,不能二次触发事件效果(有多是我的缘由),本身写的弹窗好费事啊,让前端的哥们写了一个,保存下来了。发现bootstrap的弹窗简单,之后仍是本身写吧。html5

//调用
<a href="#" data-toggle="modal" data-target="#alert">全局</a>
//弹窗  上中下三部分 标题  内容  按钮【可省略啊】
<div class="modal fade" id='alert'>
	  <div class="modal-dialog">
		<div class="modal-content">
		  <div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h4 class="modal-title">修改密码</h4>
		  </div>
		  <div class="modal-body">
		  //弹窗内容
			<p>啦啦啦啦</p>
			<input type="text" name='name' id='name'>
		  </div>
		  <div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal" id='sub'>提交</button>
			<button type="button" class="btn btn-primary">取消</button>
		  </div>
		</div><!-- /.modal-content -->
	  </div><!-- /.modal-dialog -->
	</div><!-- /.modal -->

4.table  12布局jquery

5.视频教程 http://www.maiziedu.com/course/php/304-5965/ bootstrap


window.open('http://bbs.house365.com/help.php?id=5','','height=500,width=970,scrollbars=yes,status =yes')浏览器

相关文章
相关标签/搜索