如何在bootstrap中证明我的文本

时间:2016-12-14 09:29:29

标签: twitter-bootstrap laravel-5 justify

您好我在Laravel中使用Bootstrap开发My web。我需要证明我的段落是正确的。但在我的引导程序中,它不支持。我该怎么做?

这是我的自举格式:

 <div class="container">
   <div class="row">
     <div class="col-md-10 col-md-offset-1">
        <div class="panel panel-default">
          <div class="panel-heading" ><b>BOARD OF DIRECTORS</b>
                   this is My text area
          </div>
        </div>
     </div>
   </div>
</div>

2 个答案:

答案 0 :(得分:0)

使用bootstrap调用“text-justify”中有一个类可以在bootstrap中实现文本对齐。

 <div class="container">

        <div class="row">

            <div class="col-md-10 col-md-offset-1">

                <div class="panel panel-default">

                    <div class="panel-heading text-justify"><b>BOARD OF DIRECTORS</b>
this is My text area

</div>

    </div>
    </div>
    </div>
    </div>
    </div>

有关详情,请参阅以下链接

http://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_ref_text-left&stacked=h

答案 1 :(得分:0)

引导程序中有 text-justify link类。

但看到您的代码,您似乎可能想要缩进外部文本。

若然,请使用此..

&#13;
&#13;
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>


<div class="container">
   <div class="row">
     <div class="col-md-10 col-md-offset-1">
       	<div class="panel panel-default">
          <div class="panel-heading text-justify" ><b>BOARD OF DIRECTORS</b>
                This is My text area
                <p class="text-justify" style="text-indent: 50px;"> This is My text area </p>
          </div>
        </div>
     </div>
   </div>
</div>
       


</body>
</html>
&#13;
&#13;
&#13;