我正在使用Codeigniter。我使用HTML在我的视图php页面添加一个页脚,并在我的主视图php页面中包含“footer.php”,这里是footer.php HTML和php代码
<div class="col-sm-2 ">
<!-- Stay Connected -->
<div class="footer-heading">
<h2>Stay Connected</h2>
</div>
<ul class="social-icons">
<li><a href="#" data-original-title="Facebook" class="social_facebook"></a></li>
<li><a href="#" data-original-title="Twitter" class="social_twitter"></a></li>
<li><a href="#" data-original-title="Goole Plus" class="social_googleplus"></a></li>
<li><a href="#" data-original-title="Youtube" class="social_youtube"></a></li>
<li><a href="#" data-original-title="Linkedin" class="social_linkedin"></a></li>
</ul>
<div class="app-icons">
<img src="<?php echo base_url();?>assets_profile/img/icons/google_play.png" >
<img src="<?php echo base_url();?>assets_profile/img/icons/apps_store.png" >
</div>
</div>
但问题是,在chrome浏览器显示这样的每一件事我都添加了
但是在Firefox浏览器中显示如下
如何解决这个问题?需要快速帮助,这是我的CSS代码
.social_amazon {background: url(../img/icons/social/amazon.png) no-repeat;}
.social_behance {background: url(../img/icons/social/behance.png) no-repeat;}
.social_blogger {background: url(../img/icons/social/blogger.png) no-repeat;}
.social_deviantart {background: url(../img/icons/social/deviantart.png) no-repeat;}
.social_dribbble {background: url(../img/icons/social/dribbble.png) no-repeat;}
.social_dropbox {background: url(../img/icons/social/dropbox.png) no-repeat;}
.social_evernote {background: url(../img/icons/social/evernote.png) no-repeat;}
.social_facebook {background: url(../img/icons/social/facebook.png) no-repeat;}
.social_forrst {background: url(../img/icons/social/forrst.png) no-repeat;}
.social_github {background: url(../img/icons/social/github.png) no-repeat;}
.social_googleplus {background: url(../img/icons/social/googleplus.png) no-repeat;}
.social_jolicloud {background: url(../img/icons/social/jolicloud.png) no-repeat;}
.social_last-fm {background: url(../img/icons/social/last-fm.png) no-repeat;}
.social_linkedin {background: url(../img/icons/social/linkedin.png) no-repeat;}
.social_picasa {background: url(../img/icons/social/picasa.png) no-repeat;}
.social_pintrest {background: url(../img/icons/social/pintrest.png) no-repeat;}
.social_rss {background: url(../img/icons/social/rss.png) no-repeat;}
.social_skype {background: url(../img/icons/social/skype.png) no-repeat;}
.social_spotify {background: url(../img/icons/social/spotify.png) no-repeat;}
.social_stumbleupon {background: url(../img/icons/social/stumbleupon.png) no-repeat;}
.social_tumblr {background: url(../img/icons/social/tumblr.png) no-repeat;}
.social_twitter {background: url(../img/icons/social/twitter.png) no-repeat;}
.social_vimeo {background: url(../img/icons/social/vimeo.png) no-repeat;}
.social_wordpress {background: url(../img/icons/social/wordpress.png) no-repeat;}
.social_xing {background: url(../img/icons/social/xing.png) no-repeat;}
.social_yahoo {background: url(../img/icons/social/yahoo.png) no-repeat;}
.social_youtube {background: url(../img/icons/social/youtube.png) no-repeat;}
.social_vk {background: url(../img/icons/social/vk.png) no-repeat;}
答案 0 :(得分:0)
我认为给定路径是错误的, 试试这个,
.social_amazon {
background: url(<?php echo base_url();?>img/icons/social/amazon.png) no-repeat;
}