简体   繁体   English

CSS border-image属性未显示

[英]CSS border-image property not showing

I am having some issues with the CSS border-image property. 我在CSS border-image属性上遇到了一些问题。 The CSS is as follows: CSS如下:

    footer#footer {
background-image: url("http://bramcroft.co.uk/wp-content/uploads/2015/03/background-footer.png");
background-color: #cccccc;
border-image: url(http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png);
-moz-border-image: url(http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png);
-webkit-border-image: url(http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png);
border-image-width: 100% 0 0 0;
-moz-border-image-width: 100% 0 0 0;
-webkit-border-image-width: 100% 0 0 0;
}

I have an image in the footer itself, and this appears to cover the area that has been set for the border. 我在页脚本身中有一个图像,它似乎覆盖了为边框设置的区域。

The website I am trying to apply this to is as follows: http://bramcroft.co.uk/ 我尝试将其应用到的网站如下: http : //bramcroft.co.uk/

I would like the border above the brown footer. 我想要棕色页脚上方的边框。

Any help would be greatly appreciated! 任何帮助将不胜感激!

You need to add double-quotes "...." to your css image path file. 您需要在CSS图像路径文件中添加双引号"...."

Change this: 更改此:

border-image: url(http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png);

-moz-border-image: url(http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png);

-webkit-border-image: url(http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png);

to this: 对此:

border-image: url("http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png");

-moz-border-image: url("http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png");

-webkit-border-image: url("http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png");

U can try this by changing the desired border size 您可以通过更改所需的边框大小来尝试

border:10px;
background-image: url("http://bramcroft.co.uk/wp-content/uploads/2015/03/background-footer.png");
background-color: #cccccc;
border-image: url("http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png") 30 30;
-moz-border-image: url("http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png") 30 30;
-webkit-border-image: url("http://bramcroft.co.uk/wp-content/uploads/2015/03/paws-border.png") 30 30;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM