Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/261.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
Php Firefox中CSS的问题_Php_Html_Css_Google Chrome_Firefox - Fatal编程技术网

Php Firefox中CSS的问题

Php Firefox中CSS的问题,php,html,css,google-chrome,firefox,Php,Html,Css,Google Chrome,Firefox,我有一个下面的CSS,它可以很好地与Google Chrome配合使用,但不能与Firefox配合使用 $document->addStyleDeclaration('body{margin-bottom:65px!important} .toolbar_fixed{position:fixed;left:1px;bottom:-5px;width:100%!important} .toolbar_fixed_inner{style="height:100%;width:100%;ba

我有一个下面的CSS,它可以很好地与Google Chrome配合使用,但不能与Firefox配合使用

$document->addStyleDeclaration('body{margin-bottom:65px!important} 
.toolbar_fixed{position:fixed;left:1px;bottom:-5px;width:100%!important} 
.toolbar_fixed_inner{style="height:100%;width:100%;background:'.$params->get('background').';border-top:'.$params->get('border_pixels').'px solid '.$params->get('border_color').';color:#202020}
.toolbar_fixed_content{text-align:'.$params->get('align').';width:100%;margin-top:10px;padding-bottom:10px;margin-bottom:5px}
.toolbar_fixed_content a:hover{background:none!important}
.toolbar_fixed_content img{margin-right:'.$params->get('images_space').'px}
');
如果你在Google Chrome和Firefox中用社交媒体图标查看这个链接底部栏,你就会知道其中的区别。


请让我知道如何在firefox上获得相同的功能。谢谢

我不知道这是什么语法,但可能是这一行

.toolbar_fixed_inner{style="height:100%;width:100%;background:'.$params->get('background').';border-top:'.$params->get('border_pixels').'px solid '.$params->get('border_color').';color:#202020}
这是不正确的。尝试删除样式=。。部分

.toolbar_fixed_inner{height:100%;width:100%;background:'.$params->get('background').';border-top:'.$params->get('border_pixels').'px solid '.$params->get('border_color').';color:#202020}

试一试

但如果这是一个问题,为什么谷歌chrome可以正常工作?可能是chrome忽略了这一部分,firefox更严格了。是的,chrome做了额外的努力,但语法肯定是错误的。它工作得很好。。谢谢