如何在html中拉伸内容

时间:2016-06-13 00:59:24

标签: html css

我有这个内容,但是,我希望扩展内容以使其整体适合。需要帮助!

.subtext10 {
  margin-left: 210px;
  margin-top: 90px;
  font-size: 9.2pt;
  line-height: 20px;
}
<div class="text5">
  <p class="subtext10">has equipped me with the knowledge in modules such as
    <br>Business Environment, Service Excellence,
    <br>Entrepreneurship, Executive Lounge Service,
    <br>Housekeeping Services, Hospitality Sales & Marketing
    <br>and Event & Catering Management which are
    <br>essential in the field</p>
</div>

1 个答案:

答案 0 :(得分:1)

删除中断标记(// These work as I'd expect to return false console.log(IDBKeyRange.lowerBound(2).includes(1)); console.log(IDBKeyRange.lowerBound(4).includes(3)); // These do not behave as expected (I'd expect "true") console.log(IDBKeyRange.lowerBound(1).includes(1)); // FF gives false console.log(IDBKeyRange.lowerBound(3).includes(4)); // FF gives false )和边距:

块级元素(例如段落(<br>)和div)将自然地拉伸其容器的完整可用宽度。详细了解block formatting context

&#13;
&#13;
<p>
&#13;
.subtext10 {
  font-size: 9.2pt;
  line-height: 20px;
}
&#13;
&#13;
&#13;