写一个精美的前端界面代码
时间: 2023-03-10 21:38:02 浏览: 73
答案:```html
<!DOCTYPE html>
<html>
<head>
<title>前端界面代码</title>
<style>
body {
background-color: #f2f2f2;
font-family: "微软雅黑", sans-serif;
}
.main {
margin: 0 auto;
width: 800px;
}
.title {
font-size: 24px;
color: #333;
font-weight: bold;
text-align: center;
}
.content {
font-size: 14px;
color: #666;
padding: 20px;
}
.button {
background-color: #2196f3;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="main">
<div class="title">前端界面代码</div>
<div class="content">
这里是前端界面代码内容。
</div>
<button class="button">提交</button>
</div>
</body>
</html>
```