<blockquote>标签 自定义样式

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35393869/article/details/81944951

<blockquote>标签 自定义样式

blockquote 属于H5新增标签。结合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">
    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
    <title>blockquote标签 自定义样式</title>

    <!-- Bootstrap -->
    <link href="statics/plugins/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
    <!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
<style type="text/css">
    body{padding: 20px;}
.bootstrap-elem-quote{
    margin-bottom: 10px;
    padding: 15px;
    line-height: 22px;
    border-left: 5px solid #009688;
    border-radius: 0 2px 2px 0;
    background-color: #f2f2f2;
}
</style>
  </head>
  <body>
    <blockquote class="bootstrap-elem-quote">
        <form class="form-inline">
          <div class="form-group">
            <label for="exampleInputName2">Name</label>
            <input type="text" class="form-control" id="exampleInputName2" placeholder="Jane Doe">
          </div>
          <div class="form-group">
            <label for="exampleInputEmail2">Email</label>
            <input type="email" class="form-control" id="exampleInputEmail2" placeholder="[email protected]">
          </div>
          <button type="submit" class="btn btn-primary">Send invitation</button>
        </form>
    </blockquote>



    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="statics/plugins/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  </body>
</html>

以上就是关于“ blockquote 标签 自定义样式 ” 的全部内容。

猜你喜欢

转载自blog.csdn.net/qq_35393869/article/details/81944951
今日推荐