好看的个人中心页面中CSS
时间: 2023-09-14 17:07:12 浏览: 40
以下是一个简单的、好看的个人中心页面的 CSS 样式代码:
```css
/* 整个页面的样式 */
body {
background-color: #f5f5f5;
font-family: Arial, sans-serif;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* 头部样式 */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 20px;
border-bottom: 1px solid #eee;
}
.logo {
font-size: 24px;
color: #333;
}
.menu {
display: flex;
align-items: center;
}
.menu-item {
margin-right: 20px;
font-size: 16px;
color: #333;
text-decoration: none;
}
.menu-item:hover {
color: #666;
}
/* 主要内容样式 */
.main-content {
margin-top: 20px;
}
.section-title {
font-size: 20px;
font-weight: bold;
color: #333;
margin-bottom: 10px;
}
.profile-section {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.profile-picture {
width: 100px;
height: 100px;
border-radius: 50%;
overflow: hidden;
margin-right: 20px;
}
.profile-picture img {
max-width: 100%;
height: auto;
}
.profile-name {
font-size: 24px;
font-weight: bold;
color: #333;
}
.profile-bio {
font-size: 16px;
color: #666;
margin-top: 10px;
}
/* 底部样式 */
.footer {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #eee;
color: #666;
font-size: 14px;
text-align: center;
}
```
这个样式代码包含了整个页面的样式,包括头部、主要内容和底部。你可以根据自己的需要进行修改和调整。