页脚css制作
页脚CSS制作方法
固定定位页脚
footer {
position: fixed;
bottom: 0;
width: 100%;
background-color: #333;
color: white;
text-align: center;
padding: 10px 0;
}
响应式页脚布局

.footer-container {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.footer-section {
flex: 1;
min-width: 200px;
margin: 10px;
}
页脚链接样式
.footer-links a {
color: #ddd;
text-decoration: none;
display: block;
margin-bottom: 8px;
transition: color 0.3s;
}
.footer-links a:hover {
color: #fff;
}
页脚版权信息

.copyright {
text-align: center;
padding: 15px 0;
border-top: 1px solid #444;
font-size: 0.9em;
}
社交媒体图标样式
.social-icons {
display: flex;
justify-content: center;
gap: 15px;
}
.social-icons a {
color: white;
font-size: 1.5em;
transition: transform 0.3s;
}
.social-icons a:hover {
transform: translateY(-3px);
}
移动端适配
@media (max-width: 768px) {
.footer-section {
flex: 100%;
text-align: center;
}
footer {
position: static;
}
}






