
有没有会这个网页的制作本人不会有没有会的
代码就可以谢谢了携程网页,酒店
阿里嘎多学长整理AIGC生成,因移动端显示问题导致当前答案未能完全显示,请使用PC端查看更加详细的解答过程
你需要制作一个携程旅行类别的网页,包含酒店信息等内容。下面是一个简化的HTML示例:
<!-- header -->
<header>
<nav>
<ul>
<!-- 导航菜单 -->
</ul>
</nav>
<h1>携程旅行</h1>
</header>
<!-- hero section -->
<section class="hero">
<h2>携程酒店</h2>
<p>寻找理想的住宿经验</p>
<button>立即预定</button>
</section>
<!-- hotel section -->
<section class="hotels">
<!-- 酒店列表 -->
<article>
<h3>酒店名称</h3>
<p>酒店地址</p>
<p>酒店评分</p>
</article>
<article>
<!-- 复制上面 hotel 文章结构 -->
</article>
</section>
/* 全局样式 */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 1em;
text-align: center;
}
.hero {
background-image: url('https://example.com/banner.jpg');
background-size: cover;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
}
.hotels {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.hotels article {
background-color: #f7f7f7;
border: 1px solid #ddd;
margin: 1em;
padding: 1em;
width: calc(33.33% - 2em);
}
button{
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
transition: 0.3s;
}