去除虚线边框

Removing dotted border

我使用以下代码使用 OpenSeaDragon 显示图像

var newURL='...link to picture...';

var viewer = OpenSeadragon({
        id: "id_forPic",
        zoomInButton:   "cs_zoomin",
        zoomOutButton:  "cs_zoomout",
         homeButton:     "cs_reset",
        fullPageButton: "cs_fullpage",
        defaultZoomLevel:1,
        tileSources: {url:newURL,type:'image'}
        
    });

当我平移图像时,后面有一条虚线。有谁知道如何删除它? 我尝试将以下内容添加到样式中-sheet

.openseadragon-container  { 
    border: 0px !important;
    border-color:white !important;
}

我认为这可能是重点指标。你可以试试这个:

.openseadragon-container :focus { outline: none; }

这里有更多的讨论:https://github.com/openseadragon/openseadragon/issues/893