<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF8">
<meta name="viewport" content="width=devicewidth, initialscale=1.0">
<title>房屋出租信息</title>
<style>
body {
fontfamily: Arial, sansserif;
margin: 0;
padding: 0;
}
header {
backgroundcolor: #f1f1f1;
textalign: center;
padding: 20px;
}
h1 {
margin: 0;
}
main {
padding: 20px;
}
.houseinfo {
display: flex;
flexwrap: wrap;
justifycontent: spacebetween;
}
.houseitem {
width: 30%;
marginbottom: 20px;
border: 1px solid #ccc;
padding: 10px;
boxsizing: borderbox;
}
.houseitem h2 {
margin: 0;
}
.houseitem p {
margin: 5px 0;
}
</style>
</head>
<body>
<header>
<h1>房屋出租信息</h1>
</header>
<main>
<div class="houseinfo">
<div class="houseitem">
<h2>房源1</h2>
<p>地址:北京市朝阳区</p>
<p>租金:¥3000/月</p>
<p>面积:100平米</p>
</div>
<div class="houseitem">
<h2>房源2</h2>
<p>地址:上海市浦东新区</p>
<p>租金:¥4000/月</p>
<p>面积:120平米</p>
</div>
<div class="houseitem">
<h2>房源3</h2>
<p>地址:深圳市南山区</p>
<p>租金:¥5000/月</p>
<p>面积:150平米</p>
</div>
</div>
</main>
</body>
</html> 这个示例包含了一个简单的页面结构,包括头部(header)和主要内容区域(main),在主要内容区域中,我们使用了一个名为houseinfo的容器来存放所有的房屋信息,每个房屋信息都被包含在一个名为houseitem的容器中,包含了房屋的名称、地址、租金和面积等信息,我们还为这些元素添加了一些基本的样式,以使页面看起来更美观。


【版权声明】:本站所有内容均来自网络,若无意侵犯到您的权利,请及时与我们联系将尽快删除相关内容!
发表回复