【发布时间】:2016-10-03 03:21:16
【问题描述】:
所以我正在尝试重新创建此网页,并且正在研究我将使用 7 次跨越导航栏的 div 样式,并且无法加载引用的图像。
我现在将发布我的代码。我在页面中使用样式进行快速访问,但完成后将使用外部样式表。
<!DOCTYPE html>
<html>
<header class="header" id="header" align="middle">
<img src="https://s21.postimg.org/luvg05cjb/header.jpg">
</header>
<style>
.Home {
position: absolute;
background-image: url("https://postimg.org/image/vg652px3f/");
background-size: 99px 30px;
left: 290px;
top: 234px;
text-align: center;
line-height: 30px;
width: 99px;
height: 30px;
color: black;
}
</style>
<body>
<div class="Home">Home</div>
<h1></h1>
<p></p>
</body>
</html>
【问题讨论】:
标签: html css xhtml background-image