2013-07-28 43 views
0

在_Layout.cshtml中,我有一個標題圖像和兩個鏈接圖像,當光標懸停在其上時,它們會變成其他圖像。最初加載頁面時(例如// localhost:58055 /),將顯示圖像。例如,當我通過鏈接重定向到URL爲// localhost:58055/Home/Index時,圖像只顯示小圖片「破碎的圖像」。爲什麼會這樣呢?這是我在_Layout.cshtml中指定標題圖片的位置。只有在初始加載ASP.MVC時才顯示圖像

<header> 
     <div class="trippy-title"> 
      <img src="images/title_wider.jpg" width="100%" height="100%" repeat> 
     </div> 
    </header> 

回答

相關問題