Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 在哪里可以找到ZK sclass可用项目?_Css_Styles_Zk - Fatal编程技术网

Css 在哪里可以找到ZK sclass可用项目?

Css 在哪里可以找到ZK sclass可用项目?,css,styles,zk,Css,Styles,Zk,我正在使用ZK,我想对.zul文件中的项目使用ZK sclasses。 我看到您可以使用以下内容: <style> div.z-tree { background: none !important; background-image: none !important; border: none !important; } div.z-tree-body { background: none !important; } tr.z-treerow-

我正在使用ZK,我想对.zul文件中的项目使用ZK sclasses。 我看到您可以使用以下内容:

<style>
    div.z-tree {
    background: none !important;
    background-image: none !important;
    border: none !important;
}
div.z-tree-body {
    background: none !important;
}
tr.z-treerow-seld, tr.z-treerow-over {
    background: #00533f !important;
}
div.z-treecell-cnt {
    color: #5555ff;
}
.test-class div.z-treecell-cnt {
    color: #ff5555 !important;
}
  </style>

div.z-树{
背景:无!重要;
背景图像:无!重要;
边界:没有!重要;
}
div.z-树体{
背景:无!重要;
}
tr.z-treerow-seld,tr.z-treerow-over{
背景:#00533f!重要;
}
第z部分-特雷塞尔-碳纳米管{
颜色:#5555ff;
}
.试验等级分区z-treecell-cnt{
颜色:#ff5555!重要;
}

我在哪里可以找到所有这些样式,比如我可以使用的z-tree-body和我可以分配给它们的所有属性,或者如何搜索它们?

当我需要覆盖某些CSS时,我总是使用浏览器开发人员工具搜索特定的CSS类

因为您希望覆盖某些节点(而不是全部节点)的CSS,所以请尝试将sclass用于您自己的特定类

例如:

<style>
    .red {
        color:red;
    }
<style/>
<label sclass="@load(empty vm.property?''':'red')" />

瑞德先生{
颜色:红色;
}

如果是针对特殊情况,则不需要使用zk类。为了覆盖它们,您可以更好地使用zk类。

您是要覆盖zk中特定组件的所有css,还是要创建一个全新的主题?@chillworld:不,在这种情况下,只需覆盖树组件的一些css。更具体地说,我想根据节点模型中的一些布尔值,突出显示树中某些元素(节点)的(更改背景)。如果有人得到了答案,我也希望知道他们在哪里读到的。谢谢