1

如何将我的实际文本转换为给定示例中的项目符号?

这就是我所拥有的

这就是我需要的

我的引导代码

<div class="row">
<div class="span12">
        <div class="inside">
          <hgroup>
            <h2>RESPECT FOR THE INDIVIDUAL</h2>
          </hgroup>
          <div class="entry-content">
            <p>• We listen to the other person without interruption and practice effective listening skills.<br>


4

3 回答 3

1

您可以使用&#9642;which is ahtml - unicode如下:

<div class="row">
  <div class="span12">
    <div class="inside">
      <hgroup>
        <h2>RESPECT FOR THE INDIVIDUAL</h2>
      </hgroup>
      <div class="entry-content">
        <p>&#9642; We listen to the other person without interruption and practice effective listening skills.</p>
        <p>&#9642; We do not shy away from challenges</p>
        <p>&#9642; We stay true to our slogan</p>
      </div>
    </div>
  </div>
</div>

于 2016-05-16T11:27:52.017 回答
1

建议不要尝试将<p>元素转换为项目符号列表 - 您只需使用项目符号列表:_

      <div class="entry-content">
       <ul>
          <li>We listen to the other person without interruption and practice effective listening skills.</li>
          <li>We do not shy away from challenges</li>
          <li>We stay true to our slogan</li>
        </ul>
      </div>

似乎比试图重新发明一种圆形装置更好,这种装置可以将一种元素转变或硬塞进另一种元素的自然行为中。只是一个想法... :))

于 2016-05-16T12:29:35.623 回答
1

我的建议是最好使用 ul 和 li 来列出。

<div class="row">
    <div class="span12">
        <div class="inside">
            <hgroup>
                <h2>RESPECT FOR THE INDIVIDUAL</h2>
            </hgroup>
            <ul class="entry-content" style="list-style-type: square;">
                <li>We listen to the other person without interruption and practice effective listening skills.</li>
            </ul>
        </div>
    </div>
</div>

您可以使用list-style-type: square;ul 元素来更改列表项的样式。

我只是在这里使用了内联 CSS,您可以将样式添加到您的 css 文件中。

供您参考,这里是HTML-Listlist-style-type 的定义和用法。

希望这有帮助:)

于 2016-05-16T14:38:22.360 回答