如何让背景图像在 css 中可见
How do i make the background-image visible in my css
我的 public_html 根目录中有三个文件:
public_html:
index.htm
deer.jpg
style.css
在 css.style 我有
body{
background-image:url('deer.jpg');
}
在index.htm中,我有
<head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<title>AAA</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Filling the Gap betwwen ASIC Design Education and Industry</h1>
<h2>Interview Questions/Industry Case Study</h2>
<ul>
<li><a href="asic/index.htm">Asic Design</a></li>
<li><a href="rental/rental.htm">Rental Management</a></li>
</ul>
<p></p>
</body>
</html>
为什么我的网页上没有显示图片?
尝试使用 background: url('deer.jpg') no-repeat;
而不是 background-image
我的 public_html 根目录中有三个文件:
public_html:
index.htm
deer.jpg
style.css
在 css.style 我有
body{
background-image:url('deer.jpg');
}
在index.htm中,我有
<head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<title>AAA</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Filling the Gap betwwen ASIC Design Education and Industry</h1>
<h2>Interview Questions/Industry Case Study</h2>
<ul>
<li><a href="asic/index.htm">Asic Design</a></li>
<li><a href="rental/rental.htm">Rental Management</a></li>
</ul>
<p></p>
</body>
</html>
为什么我的网页上没有显示图片?
尝试使用 background: url('deer.jpg') no-repeat;
而不是 background-image