我新建了一个Asp.net MVC程序,保留最简单的样式,在css里改了布局,颜色等,可以在设计试图里看到效果,但一运行,确是另一种效果。比如body的背景颜色怎么改都还是那种默认的海蓝色。
设计样子:
运行样子:
css文件代码:
Code
/*----------------------------------------------------------
The base color for this template is #5c87b2. If you'd like
to use a different color start by replacing all instances of
#5c87b2 with your new color.
----------------------------------------------------------*/
body
{
background-color: gray;
}
#page
{
width: 90%;
margin-left: auto;
margin-right: auto;
height:auto;
background-color: black;
}
#page h1
{
padding: 1px;
color: white;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
font-size: 28px !important;
}
.column
{
float:left;
width:300px;
border:solid 1px black;
margin-right:10px;
padding:5px;
background-color:white;
min-height:500px;
}
/* TAB MENU
----------------------------------------------------------*/
/* MISC
----------------------------------------------------------*/
.clear
{
clear: both;
}
.error
{
color:Red;
}
Master母页代码:
Code
/*----------------------------------------------------------
The base color for this template is #5c87b2. If you'd like
to use a different color start by replacing all instances of
#5c87b2 with your new color.
----------------------------------------------------------*/
body
{
background-color: gray;
}
#page
{
width: 90%;
margin-left: auto;
margin-right: auto;
height:auto;
background-color: black;
}
#page h1
{
padding: 1px;
color: white;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
font-size: 28px !important;
}
.column
{
float:left;
width:300px;
border:solid 1px black;
margin-right:10px;
padding:5px;
background-color:white;
min-height:500px;
}
/* TAB MENU
----------------------------------------------------------*/
/* MISC
----------------------------------------------------------*/
.clear
{
clear: both;
}
.error
{
color:Red;
}