我的html文件在使用CSS样式表中定义的字体颜色方面存在问题。它似乎部分工作正常,但不幸的是它没有达到我想要的效果。
* {
font-family: "verdana"
color: #FFF;
}
.wrapper {
display: table;
width: 100%;
height: 100%;
background-color: #000000;
}
.header {
display: table;
float: left;
background-image: url("header.jpg");
width: 100%;
height: 250px;
vertical-align: top;
}
.bodytop {
display: table;
clear: both;
background-image: url(images/header.jpg);
width: 100%;
vertical-align: top;
background-color: #444444;
}
.bodybottom {
display: table;
width: 100%;
vertical-align: top;
background-color: #666666;
}
.buttonbox {
display: table;
width: 150px;
height: 150px;
background-color: #888888;
vertical-align: middle;
margin: 15px;
}
<htmL>
<head>
<link rel="stylesheet" type="text/css" href="css/stylesheet.css">
<title></title>
</head>
<body>
<div class="wrapper">
<div class="header">
<!--Header, the first 250px from the top-->
<div class=bodytop>
<!--upper part of the website-->
<center>
<div class="buttonbox">
Dit is button3
</div>
<div class="buttonbox">
Dit is button2
</div>
<div class="buttonbox">
Dit is button1
</div>
</center>
<div class=bodybottom>
<!--Lower part of the website-->
</div>
</div>
</div>
</div>
</body>
</htmL>
<center>
标签,它已经和恐龙一样灭绝了。 - Praveen Kumar Purushothaman