MVC かみそりコードを使用して Web サイトのロゴを生成し、Web サイトのサイズ変更による画像のスケーリングに苦労しています。image = max-width:100%
私はandで試しましheight:auto
たが、うまくいきません!
これが私のコードです:
<div class="float-left">
<p class="site-title">@Html.ActionLink(" ", "Home", "Home", null, new {@class = "crown_logo"})</p>
</div>
a.crown_logo {
display:block;
width:284px;
height:87px;
background-image :url("../GUI/Images/rsz_crown_2.png");
text-indent: -9999px; /* hides the link text */
}