Das Stylesheet in meiner ASP.NET MVC _Layout-Datei ist nicht verknüpft, sodass

nicht blau wirdCSS

CSS verstehen
Anonymous
 Das Stylesheet in meiner ASP.NET MVC _Layout-Datei ist nicht verknüpft, sodass

nicht blau wird

Post by Anonymous »

Ich verlinke auf ein Stylesheet in meiner _Layout-Datei in meinem ASP.NET MVC-Projekt. Das Stylesheet ändert die Farbe des h1-Headers in Blau, ist aber immer noch schwarz. Was mache ich falsch?
Der Pfad in der Datei _Layout zur Datei site.css ist korrekt.

Code: Select all

_Layout
Markup:

Code: Select all





@ViewBag.Title




@RenderBody()



CSS:

Code: Select all

body {
padding: 1em;
font-family: Arial, Arial, Helvetica, sans-serif;
}

h1 {
margin-top: 0;
color: blue;
}

label {
display: inline-block;
width: 10em;
padding-right: 1em;
}

div {
margin-bottom: .5em;
}
Markup und Code anzeigen (abgekürzt)

Code: Select all

@model FutureValueModel
@{
ViewData["Title"] = "Future Value Calculator In Da' House";
}

Future Value Calculator

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post