【问题标题】:list style image in tcpdf列出 tcpdf 中的样式图像
【发布时间】:2014-04-11 09:21:52
【问题描述】:

如何设置 list-style-image 属性以在 tcpdf 中列出?下面是我的代码

<style>
  .content{
    color: #111;
    font-size:12px;
    font-weight:normal;
  }
  .title{
    color: #3e3e3e;
    font-size:14px;
    font-weight:bold;
  }
  ol,ul{
    list-style-image: url('images/leaf_icon.jpg');
  }
</style>

title and content divs 获取 css 但不在 ol,ul

知道如何实现吗?

【问题讨论】:

    标签: php tcpdf


    【解决方案1】:

    我在 tcpdf 中找到了 set list-style-image 属性:

    <style>
        ul{
            list-style-type:img|jpg|1|1|path/to/file/li_puce.jpg;
        }
    </style>
    

    type|image_type|size_x|size_y|path_file

    对不起我的英语

    【讨论】:

    • 这是一个很好的解决方案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-17
    • 2014-05-12
    • 2012-04-19
    • 2016-08-02
    • 2014-06-27
    • 2012-01-14
    相关资源
    最近更新 更多