图像不能正确加载

时间:2014-09-18 04:51:17

标签: php html

<?php include "$_SERVER[DOCUMENT_ROOT]/new/stations/includes/header.php"; ?> /* HEADER */
    <div class="content">
            <div class="content-padded">
                <!--     radio name     -->
                <h3 class="text-center"> Akwaaba Radio </h3>
                <!--     end radio name    -->
                <!--      start station logo       -->
                <div class="img-middle">
                    <img src="img/Akwaaba.png" alt="cmon" width="200px"> /* Station IMAGE*/
                </div>
                <!--      End Logo      -->
                <!--     Player       -->
                <div class="audio-player">
                    <p>Click the button ( <i class="fa fa-play"></i> ) to play</p>
                    <audio src="http://149.255.33.74:8002/;.mp3" controls="yes"></audio>
                </div>
                <!--     End Player       -->
                <!--            
 =================
navigation button
=================
-->
                <div class="spacer"></div>
                <div class="text-center">

                <?php include "$_SERVER[DOCUMENT_ROOT]/new/stations/includes/toggle.php"; ?>

                </div>
                <div class="spacer"></div>
                <!--
=================
navigation button
=================
-->
                <h4>About :-</h4>
                <!--      Station details      -->
                <div class="well">
                    001 (703) 395-0534
                </div>
                <!--      End Detials       -->
                <center>
                    <a class=" space-btn btn btn-facebook"><i class="fa fa-facebook"></i> | Share on Facebook</a>
                    <a class=" space-btn btn btn-twitter "><i class="fa fa-twitter"></i> | Tweet on Twitter</a>
                    <a class=" space-btn btn btn-google-plus "><i class="fa fa-google"></i> | Share on google+</a>
                    <div class="spacer"></div>
                </center>
                <!--      Adsense      -->
                <img src="http://www.hdwallpapers.in/walls/optimus_prime_hd-HD.jpg" width="100%">
                <!--      End Adsense      -->
                <!--      Phone Number       -->
                <a href="tel:001 (703) 395-0534" class="btn btn-positive btn-block space-btn">001 (703) 395-0534
                <br>
                <small>Station Hotline</small>
            </a>
                <!--      End Number      -->
                <div class="btm-spc"></div>
            </div>
        </div>"
<?php include "$_SERVER[DOCUMENT_ROOT]/new/stations/includes/footer.php"; ? >

在上面的代码中,图像在第一次加载时不会加载。页面必须刷新才能正确加载图像。 在桌面浏览器中,图像会立即加载,但在移动设备中,必须刷新页面才能加载图像。  Please Select the First Option

1 个答案:

答案 0 :(得分:0)

替换

<img src="img/Akwaaba.png"> 

<img src="<?php echo$_SERVER[DOCUMENT_ROOT];?>/img/Akwaaba.png">