2014-05-19 84 views
-1

我有一个下面的CSS,它可以很好地适用于Google Chrome,但不适用于Firefox。Firefox中的CSS问题

$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} 
'); 

你会结识的区别,如果你检查此链接(底酒吧用的社交媒体图标)在谷歌Chrome和Firefox。 http://www.joomla357.com/demo/toolbar-joomla-module.html

请让我知道我怎么能得到相同的Firefox。由于

回答

3

我不知道这是什么语法,但很可能这条线

.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} 

,并给它一个尝试

+0

但是,如果这是一个问题,为什么它正常工作与谷歌浏览器? – MCHAppy

+1

可能是可能的,只是铬忽略了这一部分, firefox更加严格 –

+0

是啊,chrome增加了额外的一英里,但语法肯定是错误的。 – enapupe