我有这个显示3d模型的代码。当用户开始移动对象时,模型周围有一个黑色的轮廓。我如何摆脱这个黑色的轮廓?这是我的代码:
<model-viewer id="testModel" style="width: 700px; height: 700px; outline: 0;border: none;box-shadow: none;outline-width: 0px;" src="B - Oshrat - 2- SF35OP2 - 2 PIPING LINES binary/H - Oshrat - SEAMLESS LES GALOON v7_Colorway 2.glb" alt="A 3D model of an astronaut" shadow-intensity="1" ar ar-modes="webxr" auto-rotate camera-controls></model-viewer>
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>这是我的css:
*:active{
outline: 0;
border: none;
box-shadow: none;
outline-width: 0px;
}
*:focus{
outline: 0;
border: none;
box-shadow: none;
outline-width: 0px;
}
*:visited{
outline: 0;
border: none;
box-shadow: none;
outline-width: 0px;
}发布于 2021-01-14 20:29:47
放
<script src="https://unpkg.com/focus-visible@5.1.0/dist/focus-visible.js"></script>在您的HTML标题中。
发布于 2020-06-04 14:57:00
可能是因为outline: 0;应该是outline: none;
https://stackoverflow.com/questions/62188541
复制相似问题