Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CSS更改在使用Wordpress CMS的Firefox 17.0.1中不起作用_Wordpress_Firefox_Css_Wordpress Theming - Fatal编程技术网

CSS更改在使用Wordpress CMS的Firefox 17.0.1中不起作用

CSS更改在使用Wordpress CMS的Firefox 17.0.1中不起作用,wordpress,firefox,css,wordpress-theming,Wordpress,Firefox,Css,Wordpress Theming,我正在使用并将此CSS类添加到它的cssdisplay.CSS中: .round { border-width: 28px; -moz-border-image: url("../images/frame2.png") 28 28 round; /*Mozilla version*/ -webkit-border-image: url("../images/frame2.png") 28 28 round; /*Webkit version*/ -o-border-image: url("../

我正在使用并将此CSS类添加到它的cssdisplay.CSS中:

.round
{
border-width: 28px;
-moz-border-image: url("../images/frame2.png") 28 28 round; /*Mozilla version*/
-webkit-border-image: url("../images/frame2.png") 28 28 round; /*Webkit version*/
-o-border-image: url("../images/frame2.png") 28 28 round; /*Opera version*/
-ms-border-image: url("../images/frame2.png") 28 28 round; /*IE syntax when it does support this prop*/
border-image: url("../images/frame2.png") 28 28 round; /*Standard version*/
}
只是一个使用图像的简单边框。我试图将其添加到Wordpress自己的样式表中,但同样的问题仍然存在

它可以在Safari和Chrome中使用,但不能在Firefox中使用。我知道边框图像CSS可以在Firefox中使用,因为我已经在Wordpress v3.4.2之外对它进行了测试

我使用过firebug,它表明它确实使用了这个类,但由于某些原因,它没有在firefox中显示出来。我甚至试图改变主题

在过去的两天里,我在谷歌上搜索、测试,但什么也没找到

谢谢你的帮助


编辑:我正在使用MAMP。

就在昨晚,我的一个网站也出现了同样的问题


我发现唯一有效的方法是更新样式表并将其保存在wordpress编辑器中,进入数据库,在wp选项表中编辑站点url,将站点所在的文件夹重命名为您在数据库中更改的文件夹,然后它将进行更新。

好的。似乎在Firefox升级到15.01之后,他们对css的读取方式做了一些更改。您需要添加:

border-style;solid;
后边框图像css标签。应该是这样的:

.round
{
border-width: 28px;
-moz-border-image: url("../images/frame2.png") 28 28 round; /*Mozilla version*/
-webkit-border-image: url("../images/frame2.png") 28 28 round; /*Webkit version*/
-o-border-image: url("../images/frame2.png") 28 28 round; /*Opera version*/
-ms-border-image: url("../images/frame2.png") 28 28 round; /*IE syntax when it does support this prop*/
border-image: url("../images/frame2.png") 28 28 round; /*Standard version*/

border-style;solid

}

您是否尝试过禁用/清除缓存、硬刷新Ctrl+F5?有时候浏览器,有时候浏览器和服务器在缓存资源方面会变得非常糟糕——这在开发某些东西时是个问题。你也有缓存插件吗?@NikolaIvanovNikolov是的。清空缓存并重新加载。好几次。运气不好。:/必须更改数据库中的SiteUrl和Home以打开主页。你的网站的URL是什么?我正在本地与MAMP一起使用。啊,是的,很抱歉你这么说。我的错。我知道这听起来很傻,但是你已经完全重启了服务器&如果它有缓存,你已经清除了它的缓存了吗?我还建议下载MicrosoftWebMatrix 2,安装Wordpress插件并安装主题。WebMatrix还将安装IIS,我发现它在WebMatrix上的主题是正确的,但在其他任何地方都不正确。我关闭了XCache for PHP,但问题仍然存在。有趣的是,它并没有出现在Firefox中。它显示了chrome和safari的内部。我有一种感觉,css被覆盖了,但是我使用firebug,看到它使用了那个类,但没有呈现它。