为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

I just uploaded Firefox 15.0 and discovered that my pages border-images stopped working. Why?

  • 10 个回答
  • 8 人有此问题
  • 1 次查看
  • 最后回复者为 erink1234

more options

My css border-images were working until i upgraded to Firefox 15

My css border-images were working until i upgraded to Firefox 15

所有回复 (10)

more options

You probably need to duplicate your old rule so it appears with and without the -moz prefix. With prefix for Fx3.5-Fx14 and without prefix for Fx15+

For example:


-moz-border-image:url("border-image.png") 25 30 10 20 repeat; border-image:url("border-image.png") 25 30 10 20 repeat;

See: border-image | Mozilla Developer Network.

(And yes, these changes are annoying!)

Also possibly of interest: Firefox 15 for developers | Mozilla Developer Network.

more options

This is what I was using with success prior to the update:

border-width: 0px 0px 7px 0px; -moz-border-image:url(images/menu_dots.png) 0 0 7 0 repeat; -webkit-border-image:url(images/menu_dots.png) 0 0 7 0 repeat;

   border-image: url(images/menu_dots.png) 0% 0% 100% 0% repeat;
   border-image: url(images/menu_dots.png) 0 0 7 0 repeat;
more options

Could you post a URL for a live page showing the problem?

more options

http://theclearing.org/test/support.shtml

all the menu (sidebar and main) list items and main page sections should have a 'rustic' dotted line between them

more options

you can see what it looks like in chrome...

more options

Edit: See next post for preferred solution
Firefox is reading your "border-image-width" values (0 0 7 0) in as "border-image-slice" values and defaulting to a width of 1.

The "long form" works, but I can't figure out how to get the shorthand syntax to work:


border-image-source: url(images/menu_dots.png); border-image-width: 0 0 7px 0; border-image-repeat: repeat;

(I don't have Chrome on this PC.)

由jscher2000 - Support Volunteer于修改

more options

Scratch that prescription. You have this now:


border-width: 0px 0px 7px 0px; /* places a dotted bottom border under menu items */ -moz-border-image:url(images/menu_dots.png) 0 0 7 0 repeat; -webkit-border-image:url(images/menu_dots.png) 0 0 7 0 repeat; border-image: url(images/menu_dots.png) 0% 0% 100% 0% repeat; border-image: url(images/menu_dots.png) 0 0 7 0 repeat;

According to a post by David Baron (David Baron's weblog: CSS border-image changes and unprefixing), the only thing you need to add is the full border style (i.e., style and color):


border-bottom: 7px solid transparent;

由jscher2000 - Support Volunteer于修改

more options

Looks that Firefox wants a border-style to be used if the image can't be displayed.

#dots_defined200, #sidebar_nav ul li { border-style: groove; }
more options

I've had the same problem and after trying almost everything in an attempt to resolve the issue, cor-el has finally found the solution - and it's simple! Thanks!

more options

Got it! Thanks cor-el. Hey, thanks to everyone for taking the time to look. I really appreciate it!