【问题标题】:problem with list-style-type列表样式类型的问题
【发布时间】:2011-04-19 08:41:25
【问题描述】:

我有一个定义列表样式类型的 scss 文件。该文件的摘录如下:

$orange: #c53830;

..

ul.list1 {
    list-style-type:circle;
    color:$orange;
}

在我的javascript中我有

    html: '<ul class="list1"><li>some words</li><li>some more words</li></ul>'

正在应用颜色,但我没有得到项目符号列表。

有什么想法吗?

【问题讨论】:

    标签: sass sencha-touch


    【解决方案1】:

    sencha-touch.css 指定:

    li
    {
      list-style:none;
    }
    

    尝试将以下内容添加到您自己的 scss 中:

    list-style:circle;
    

    也是。

    您的模板 css 之前是否还有链接 sencha-touch.css,以便您正确覆盖它?

    【讨论】:

      猜你喜欢
      • 2020-12-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-20
      • 1970-01-01
      • 1970-01-01
      • 2018-11-09
      • 2011-11-28
      • 2014-06-01
      相关资源
      最近更新 更多