bootstrap实例效果

<!DOCTYPE html>
<html lang="zh-cn">
  <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 101 Template</title>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
  </head>
  <body>
    <nav class="navbar navbar-default navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a href="#" class="navbar-brand">project name
          </a>
        </div>
        <form class="navbar-form navbar-right" role="search">
          <div class="form-group">
            <input type="text" class="form-control" placeholder="email">
            <input type="text" class="form-control" placeholder="password">
            <button type="button" class="btn btn-success">button</button>
          </div>
        </form>
      </div>
    </nav>
    <div class="jumbotron">
      <div class="container">
        <h1>Hello, world!</h1>
        <p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
        <p><a href="#" class="btn btn-primary btn-lg" role="button">leam more&raquo;</a></p>
      </div>
    </div>
    <div class="container">
      <div class="row">
        <div class="col-sm-6 col-md-4">
          <h3>Heading</h3>
          <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
          <p><a href="#" class="btn btn-default" role="button">View details&raquo;</a></p>
        </div>
        <div class="col-sm-6 col-md-4">
          <h3>Heading</h3>
          <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
          <p><a href="#" class="btn btn-default" role="button">View details&raquo;</a></p>
        </div>
        <div class="col-sm-6 col-md-4">
          <h3>Heading</h3>
          <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
          <p><a href="#" class="btn btn-default" role="button">View details&raquo;</a></p>
        </div>
      </div>
    </div>
    <hr>
<br>
<br>
<br><br>
    <!-- jQuery (necessary for Bootstrap‘s JavaScript plugins) -->
    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>

时间: 2024-10-26 06:52:19

bootstrap实例效果的相关文章

Bootstrap 实例 - 模态框(Modal)插件

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Bootstrap 实例 - 模态框(Modal)插件</title> <link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.m

html+CSS实例效果(5):em实现倒三角的提示效果

<div class="c_page mt14 clearfix"> <span class="record">1/14P   134Records</span> <span class="first disable"><em class="bar"></em><em class="leftjib"></em>&

bootstrap标题效果

1.示例效果图如下 2.代码实现如下 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>标题</title> <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->

Bootstrap实例(实习第二天)

<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-wid

bootstrap文本效果

1.效果图如下所示 2.代码实现如下 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>文本</title> <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->

Bootstrap实例1

一.响应式单页 1.头部引入 (1)bootstrap基本模板 (2)网站信息:meta-description.meta-keywords.meta-author (3)加载到主页:apple-touch-icon和icon等 (4)bootstrap.min.css.preloader.css(自定义动画).index.css.responsive.css(响应式样式).animate.css (5)字体图标:simple-line-icons.css (6)谷歌字体:<link rel=&qu

bootstrap 手风琴效果

前端大牛:冯鲁哲  1033850519  惩戒各种web开发业务   欢迎洽谈-------鲁大师 <!DOCTYPE HTML><html><head><meta charset="utf-8"><title>按钮插件--按钮状态切换</title><link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/boot

html+CSS实例效果(2):边框为阴影及DIV内容垂直居中效果

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-

Bootstrap中样式Jumbotron,row, table的实例应用

之前只是大概预览了下Bootstrap中涉及到的相关元素,插件等的使用.接下来将通过实例演练加强对Bootstrap的了解.实例来自http://www.runoob.com/有兴趣的可以上去学习跟w3cschool上的差不多. 为了加深理解,决定先在本地用google浏览器测试后,再写到这里.加深印象. 第一:首先是基本的网页标签的定义.采用的是html5的写法如下: <!DOCTYPE html> <html> <head> <title>Bootstr