Befestigen Sie Bild auf ActionLink in MVC 4

Bin ich über ActionLink mit der id in der app MVC 4 und assinging actionLink-id ein Bild in css, aber auf der Erde habe ich falsch mache. funktioniert nicht! hier ist mein code

 <div class="logo_container">
            @Html.ActionLink(" ", "Index", "Home", null, new { id = "_Logo" })
 </div>

CSS

.logo_container {
width:339px;
height:116px; 
}

#_Logo {
background-image: url("../Images/logo.png");
 width:339px;
height:116px;
background-color:green;
}
Irgendeinem Grund Sie nicht verwenden können, <a href="@Url.Action(...)">? In Ihrem browser, html-Inspektor hat Ihr <a> - element die Klasse "logo"?

InformationsquelleAutor Toxic | 2013-10-08

Schreibe einen Kommentar