<分区>
<分区>
我有一个下面的 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 中查看此链接(带社交媒体图标的底部栏),您就会了解其中的区别。 http://www.joomla357.com/demo/toolbar-joomla-module.html
请让我知道如何为 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}
不正确。尝试删除 style=".. 部分
.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}
试一试
关于php - Firefox 中的 CSS 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23740111/