Title1

Title2

Title3

3-1-1 盒子模式 - 線條樣式

css_box.html

<!DOCTYPE html>
<html lang="zh-Hant">
  <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 3-1-1</title>
 
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/style.css">
 
    <!-- HTML5 shim and Respond.js 讓 IE8 支援 HTML5 元素與媒體查詢 -->
    <!-- 警告:Respond.js 無法在 file:// 協定下運作 -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
 
    <!-- jQuery (Bootstrap 所有外掛均需要使用) -->
    <script src="js/jquery.min.js"></script>
    <!-- 依需要參考已編譯外掛版本(如下),或各自獨立的外掛版本 -->
    <script src="js/bootstrap.min.js"></script>

  </head>
  <body>
    <div class="container">
      <h1>盒子模式</h1>
      <div class="box">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
        tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
        quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
        consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
        cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
        proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
      </div>
      
      <h2>線條樣式(border-style):</h2>
      
      <div class="row" style="margin: 10px;">
        <div class="col-md-6">CSS 樣式</div>
        <div class="col-md-6">顯現結果</div>
      </div>
      
      <div class="row" style="margin: 10px;">
        <div class="col-md-6" >實線</div>
        <div class="col-md-6" style="border-style:solid; padding:5px;">solid</div>
      </div>

      <div class="row" style="margin: 10px;">
        <div class="col-md-6">虛線</div>
        <div class="col-md-6" style="border-style:dashed; padding:5px;">dashed</div>
      </div>

      <div class="row" style="margin: 10px;">
        <div class="col-md-6">雙線</div>
        <div class="col-md-6" style="border-style:double; padding:5px;">double</div>
      </div>
      
      <div class="row" style="margin: 10px;">
        <div class="col-md-6">點線</div>
        <div class="col-md-6" style="border-style:dotted; padding:5px;">dotted</div>
      </div>
      
      <div class="row" style="margin: 10px;">
        <div class="col-md-6">凹線</div>
        <div class="col-md-6" style="border-style:groove; padding:5px;">groove</div>
      </div>
      
      <div class="row" style="margin: 10px;">
        <div class="col-md-6">凸線</div>
        <div class="col-md-6" style="border-style:ridge; padding:5px;">ridge</div>
      </div>      

      <div class="row" style="margin: 10px;">
        <div class="col-md-6">嵌入線</div>
        <div class="col-md-6" style="border-style:inset; padding:5px;">inset</div>
      </div>
      

      <div class="row" style="margin: 10px;">
        <div class="col-md-6">浮出線</div>
        <div class="col-md-6" style="border-style:outset; padding:5px;">outset</div>
      </div>
      
    </div>
  </body>
</html>

css/style.css

.box{
	border:1px solid #000;
}