网页徽标图像不会出现在导航栏中 [英] Web page logo image does not appear in navbar
本文介绍了网页徽标图像不会出现在导航栏中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的html actionlink方法。该方法正常,但徽标图像不存在。
我该如何解决?谢谢你的回答!!
< div class = navbar-header >
@Html .ActionLink(,Index,Home,new {@ class =navbar-brand,@ style =background:url('〜/ images / faviconnn.ico')no-repeat center right; height :50px;宽度:75px;})
< / div >
解决方案
尝试使用background:url('../图像/ faviconnn.ico')
This is my html actionlink method. The method is working, but logo image doesn't exist.
How can I fix it? Thanks for your answers!!
<div class="navbar-header">
@Html.ActionLink(" ", "Index", "Home", new { @class="navbar-brand ", @style = "background: url('~/images/faviconnn.ico') no-repeat center right; height:50px; width:75px;" })
</div>
解决方案
try using background: url('../images/faviconnn.ico')
这篇关于网页徽标图像不会出现在导航栏中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文