身体属性,如不同字体的作品,但div标签属性,如在#mainpic
或#header
只是不工作需要帮助的CSS DIV
body {
font-family: Callibri, sans-serif;
line-height: 1.5;
padding: 0;
margin: 0;
#mainpic {
<img src="../image/cutmypic.png";
alt="image not found";
/>background-position: "centre";
position: absolute;
bottom: 0;
center: 0;
}
}
#header {
color: white;
}
<!DOCTYPE html>
<html>
<head>
<title>My Introduction</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style/newcss.css" />
</head>
<body background="image/bg.jpg">
<div id=“ container”>
<div id=“ header”>
<h1>Welcome</h1>
</div>
<div id="mainpic"></div>
<div id=“ content”>/div>
<div id=“ navigation”> a link to the other web page</div>
<div id=“ footer”> contains your name and student number</div>
</div>
</body>
</html>
用不着喊。你也可以在这里输入一个错字''也可以使用'''''''''snippet编辑器并从你的CSS中删除HTML – mplungjan
'#mainpic { '你不能使用HTML标签在CSS规则里面。 –
1)请你可以删除大写锁定,因为它很难阅读。 2)该图片的HTML标签不属于CSS。 –