css - 关于border-image
PHP中文网
PHP中文网 2017-04-17 14:35:10
0
1
938

为什么我在p元素的内部写入结构时,边框图片就出不来,但是统一p格式时就可以出现呢?

单独p格式:

#p2 {
            -webkit-border-image: url(border.png) 30 30 round;
            border:15px solid transparent;
            width:300px;
            padding:10px 20px;
        }
<p id="p2">
            <span>边框图片</span>
        </p>

结果:

统一p格式:

#p2 {
            -webkit-border-image: url(border.png) 30 30 round;
        }
        p{
            border:15px solid transparent;
            width:300px;
            padding:10px 20px;
        }
<p id="p2">
            <span>边框图片</span>
        </p>

结果:

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
巴扎黑

Just mine is fine

You check whether your css style is overridden or where words are written, and see if there are any errors in the code (similar to the highlight without highlighting)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template