5

在带有 vista-skin 的 dynatree 中,当您将鼠标悬停在树项目上时,它会在具有蓝色背景的地方产生悬停效果。

此外,当您单击该项目以检查它时,它在 chrome 中具有橙色边框,在 IE 中具有虚线边框。

我正在尝试删除这两个,以便对悬停或单击后没有影响。

有关示例,请参见 selectMode 3:wwwendt.de/tech/dynatree/doc/sample-select.html

更新:我在 /src/skin-vista/ui.dynatree.css 中发现如果您注释掉以下块,它将阻止蓝色突出显示颜色。此外,您需要取消注释以修复 webbrowser 放入的大纲,如下所示。

/*Comment this out
ul.dynatree-container a:hover
{
/*  text-decoration: underline; */
    background: #F2F7FD; /* light blue */
    border-color: #B8D6FB; /* darker light blue */
}
*/

/*Comment this out
span.dynatree-active a
{
    border: 1px solid #99DEFD;
    background-color: #D8F0FA;
}
*/

ul.dynatree-container a
/*, ul.dynatree-container a:visited*/
{
    /*The line below was originally commented out, uncomment it to remove the orange/dotted border*/
    outline: 0; /* @ Firefox, prevent dotted border after click */
}
4

3 回答 3

3

DynaTree 现在是 FancyTree 并且在 fancytree 中,这就是我所做的。

.fancytree-container,
table.fancytree-container,
ul.fancytree-container,
span.fancytree-focused span.fancytree-title
{
  border: 0 ; 
  outline: 0; 
  -moz-outline-style: none; 
}
于 2014-04-05T11:20:07.723 回答
2

要解决此问题,您只需要删除

边框:1px 虚线灰色;

来自ui.dynatree.css上的这个ul.dynatree-container

代码最终应该是这样的:

ul.dynatree-container
{
    font-family: tahoma, arial, helvetica;
    font-size: 10pt; 
    white-space: nowrap;
    padding: 3px;
    margin: 0; 
    background-color: #CCCCCC solid 1px;

    /*border: 1px dotted gray;*/

    overflow: auto;
    height: 100%; 
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

或者只是删除点缀

边框:1px 灰色;

于 2013-11-08T14:59:15.327 回答
0
/* Prevent focus frame */
.fancytree-container:focus {
   outline: none;
}

来自 BootstrapTheme 的 CSS。

于 2015-04-17T14:47:05.373 回答