|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 我不会秃头的 于 2020-6-11 16:41 编辑
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="不可能,HTML5,CSS3">
<meta name="description" content="我">
<meta name="author" content="狗子">
<title>我的第一个网站</title>
<link rel="icon" type="image/x-icon" href="img/favicon1.ico">
<style>
body {
background-image: url("images/field.jpg");
}
</style>
<style type="text/css">
h1 {
text-align: center;
margin-top: 20%;
color: white;
}
p {
margin-left: 60%;
color: white;
}
a {
color: white;
}
</style>
</head>
<body>
<h1> 你好</h1>
<hr>
<p><a href="nihao.html">咦~这是什么</a></p>
<body>
</html>
其中body下的backgroud我加了图片后 在页面显示的图片是平铺的,请问该怎么解决呢
|
|