2017-07-19 76 views
0

我正在構建離子3應用程序,我有簡單的登錄頁面在Web模式下完美工作,但是當我在Android上運行它時,徽標不出現。離子3:無法加載資源:net :: ERR_FILE_NOT_FOUND logo.png

enter image description here

enter image description here

這裏是登錄頁面代碼:

<ion-content padding style="background:url('assets/imgs/bg.jpg') no-repeat center;background-size:cover;" id="page1"> 
    <div class="header padding text-center"> 
     <img src="../../assets/img/logo.png" alt="DoggyDOG" /> 
    </div> 
    <form id="login-form1"> 
     <ion-item id="login-input3"> 
      <ion-input type="text" placeholder="Username" name="username"></ion-input> 
     </ion-item> 
     <div class="spacer" style="width:30px;height:11px;" id="login-spacer3"></div> 
     <ion-item id="login-input2"> 
      <ion-input type="password" placehol3er="Password" name="password"></ion-input> 
     </ion-item> 
     <div class="spacer" style="height:10px;" id="login-spacer2"></div> 
     <button id="login-button1" ion-button outline color="energized" block icon-left style="font-weight:500;color:#ffffff;"> 
      <ion-icon ios="ios-log-in" md="md-log-in"></ion-icon>  
      Login 
     </button> 
     <div class="spacer" style="height:50px;" id="login-spacer3"></div> 
     <button id="login-button2" ion-button block color="light" icon-left style="color:#3A539B;"> 
     <ion-icon left ios="logo-facebook" md="logo-facebook"></ion-icon> 
     Facebook 
     </button> 
     <button id="login-button3" ion-button block color="googlebtn" icon-right style="color:#ffffff;"> 
     <ion-icon ios="logo-google" md="logo-google"></ion-icon> 
     Google 
     </button> 
    </form> 

</ion-content> 

回答

1

因爲你的後臺加載成功,而不../../路徑,嘗試沒有它:

<img src="assets/img/logo.png" alt="DoggyDOG" /> 
+0

謝謝您的幫助 – sahnoun

相關問題