2014-05-19 86 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