【问题标题】:phpword, listtype with dash or an unordered listphpword,带有破折号或无序列表的列表类型
【发布时间】:2017-01-18 13:49:01
【问题描述】:

我想使用破折号作为列表类型而不是项目符号或正方形,可以吗?

类似

- yes
- no
- nes
- yo

我正在使用 phpword 并生成 'docx'-files

【问题讨论】:

  • 这个可以通过css控制吗?
  • 我正在使用 phpword

标签: php list phpword unordered


【解决方案1】:

在 css 中使用 Before

<style type="text/css">
  ul {
    list-style-type: none;
  }
  li:before {
    content: " - ";
  }
</style>
<ul class="bullet">
  <li>1</li>
  <li>2</li>
  <li>3</li>
  <li>5</li>
</ul>  

【讨论】:

    猜你喜欢
    • 2011-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-19
    相关资源
    最近更新 更多