我有显示 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;
}