CSS 内部边框,带有背景图像的div上的不透明度

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS 内部边框,带有背景图像的div上的不透明度相关的知识,希望对你有一定的参考价值。

HTML:

<div class="theme_border"></div><div class="theme_example"></div>

CSS:

.theme_example  {
        width:280px;
        height:180px;
        background-image:url('image.png');
        background-repeat:no-repeat;
}

.theme_border   {
        width:250px;
        height:150px;
        border:15px solid #fff; /* rgba(255, 255, 255, 0.1) */
        position:absolute;
        z-index:1;
        opacity:0.1;filter:alpha(opacity=10);

}

以上是关于CSS 内部边框,带有背景图像的div上的不透明度的主要内容,如果未能解决你的问题,请参考以下文章