我目前正在寻找一种方法来删除对象标签周围的白色细边框...这是代码和我尝试过的内容



 .hr-ob {
        background-color: #003262;
        width: 50px;
        height: 10px;
        border: none;
        outline: none;
        border-width: 0;
        padding: 0;
        margin: 0;
    }

    <div style="background-color: #000000;">
        <object border="0" class="hr-ob" data="" type="image/jpg"></object>
    </div>

   

最佳答案

Johnathan的解决方案仍然存在缺陷,因为我仍处于边界,但仍想分享我现在使用的解决方案:

<iframe class="hr-ob" width="50" height="5" scrolling="no" frameborder="0"></iframe>

.hr-ob {
    background-color: #003262;
    width: 50px;
    height: 5px;
}

关于html - 删除对象标签周围的白色边框,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/57417540/

10-11 05:29