透明边框的 css 是什么?



我在一页上有一个"特殊"表,这是我希望不可见的边界。我希望它与标准css规则不同。这是一张截图:

之前http://eliteshift.com/redbeancoffee/images/before.jpg

这就是我想要的:

之后http://eliteshift.com/redbeancoffee/images/after.jpg

我做了第二个"类",叫做"奖",我可以赋予某些特征(比如宽度),但我一辈子都不能去掉木板。

透明边框的css是什么?

我试过:

table.award {
    border-collapse: collapse;
    border-spacing:0;
    width:60%;
}

border-color: transparent;将使其透明。

border:none;将删除边界,这听起来像是您在本例中实际想要的。

从声音上看,你真的需要边界吗?以下方法可行吗?

table.award{
    border: none;
    /*other css attributes omited*/
}

我发现border: 2px solid transparent并没有一直让它真正透明。

要确保您有一个固定宽度的透明边框,请使用边距:

margin: 2px

将完成

最新更新