[英]Changing a bootstrap template that already has a div container and div row
我正在尝试使用基本的引导程序模板,我添加了一个:
<div class="container"><div class="row">
<div class="col-md-6">
<p>This is the text I would like to align left</p>.
</div>
</div>
但是,我使用的引导程序模板具有文本居中对齐 - 如何仅为此段落添加规则以向左对齐? (它在哪里以及它会被称为什么?)我应该补充一点,我有一个用于网站的 css 文档并且不能添加到主类中 - 我需要为这个区域制定一个规则。
<div class="container">
<div class="row">
<div class="col-md-6">
<p class = "text-left">This is the text I would like to align left</p>
</div>
</div>
</div>
使用它会对齐左侧。 (段落标签上的class =“text-left”)。
你忘记关闭你的行 div 也应该像这样在那里使用“text-left”类:
<div class="container">
<div class="row">
<div class="col-md-6">
<p class="text-left">This is the text I would like to align left</p>.
</div>
</div>
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.