gpt4 book ai didi

php - 不同浏览器不显示相同内容

转载 作者:行者123 更新时间:2023-11-28 11:14:31 24 4
gpt4 key购买 nike

我正在使用 Codeigniter。我使用 HTML 在我的 View php 页面中添加了一个页脚,并将“footer.php”包含到我的主视图 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 浏览器中,我添加的所有东西都这样显示 enter image description here

enter image description here但是在火狐浏览器中是这样显示的

如何解决这个问题?需要快速帮助,这是我的 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;}

最佳答案

我认为给定的路径是错误的,试试这个,

.social_amazon {
background: url(<?php echo base_url();?>img/icons/social/amazon.png) no-repeat;
}

关于php - 不同浏览器不显示相同内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21820722/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com