删除对象标签周围的白色边框

时间:2019-08-08 17:03:06

标签: html css

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

shuffle :: (Eq a) => [a] -> IO [a]
shuffle [] = return []
shuffle ls = do
    x <- pick ls
    let y = remove x ls
    xs <- shuffle y
    return (x:xs)
> shuffle [1..10]
[6,8,7,2,5,10,1,9,4,3]

2 个答案:

答案 0 :(得分:0)

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

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

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

答案 1 :(得分:-1)

由于您提到的类型为image / png,并且数据字段为空,因此似乎正在显示默认的内部根色。

但是放置图像时没有边框。

HTML5不支持<object>的border属性。改用CSS。

CSS语法:<object style="border:0px">

.hr-ob {
        background-color: #003262;
        height:100px;
        width:100px;
    }
<div style="background-color: #000000;">
        <object style="border:0px;" class="hr-ob" data="https://dummyimage.com/600x400/4550ed/fff" type="image/jpg"></object>
    </div>
    
    
<div style="background-color: #000000;">
        <object style="border:0px;" class="hr-ob" data="" type="image/jpg"></object>
    </div>