生成一个移动端列表页面框架代码
时间: 2023-06-01 21:04:31 浏览: 64
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mobile List Page</title>
<style>
/* Reset default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Set body background color and font family */
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
}
/* Set header styles */
header {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
}
header h1 {
font-size: 1.5em;
margin: 0;
}
/* Set list styles */
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
background-color: #fff;
border-bottom: 1px solid #ccc;
padding: 10px;
}
/* Set link styles */
a {
color: #333;
text-decoration: none;
}
/* Set active link styles */
.active {
background-color: #ccc;
}
</style>
</head>
<body>
<header>
<h1>Mobile List Page</h1>
</header>
<ul>
<li><a href="#" class="active">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
<li><a href="#">Item 5</a></li>
</ul>
</body>
</html>