Ich habe diese _Layout.cshtml-Datei
Code: Select all
@ViewBag.Title
@RenderBody()
Code: Select all
body {
padding: 1em;
font-family: Arial, Helvetica, sans-serif;
}
h1 {
margin-top: 0;
color: navy;
}
label {
display: inline-block;
width: 10em;
padding-right: 1em;
}
div {
margin-bottom: .5em;
}
footer {
text-align: center;
padding-top: 1em;
font-size: 80%;
}
Wenn ich die Stile nehme und sie in die Datei _Layout.cshtml einfüge Datei:
Code: Select all
@ViewBag.Title
@* *@
body {
padding: 1em;
font-family: Arial, Helvetica, sans-serif;
}
h1 {
margin-top: 0;
color: navy;
}
label {
display: inline-block;
width: 10em;
padding-right: 1em;
}
div {
margin-bottom: .5em;
}
footer {
text-align: center;
padding-top: 1em;
font-size: 80%;
}
@RenderBody()
Liegt das daran, dass die CSS-Datei nicht gefunden wird? Oder mache ich etwas anderes falsch?
Danke