css制作Doraemon表格
CSS 制作哆啦A梦风格表格
使用CSS创建哆啦A梦风格的表格需要结合蓝色调、圆角设计和标志性元素。以下是实现方法:
基础表格结构
<table class="doraemon-table">
<thead>
<tr>
<th>道具</th>
<th>功能</th>
</tr>
</thead>
<tbody>
<tr>
<td>任意门</td>
<td>瞬间移动</td>
</tr>
<tr>
<td>竹蜻蜓</td>
<td>自由飞行</td>
</tr>
</tbody>
</table>
核心CSS样式
.doraemon-table {
border-collapse: separate;
border-spacing: 0;
width: 80%;
margin: 20px auto;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 255, 0.2);
font-family: 'Comic Sans MS', cursive;
}
.doraemon-table th {
background-color: #1E90FF;
color: white;
padding: 12px;
text-align: center;
border-bottom: 3px solid #FFD700;
}
.doraemon-table td {
padding: 10px;
background-color: #E6F2FF;
border-bottom: 1px dashed #1E90FF;
text-align: center;
}
.doraemon-table tr:last-child td {
border-bottom: none;
}
.doraemon-table tr:hover td {
background-color: #B0E0E6;
}
增强特效
/* 添加铃铛元素 */
.doraemon-table:before {
content: "";
display: block;
width: 30px;
height: 30px;
background-color: #FFD700;
border-radius: 50%;
margin: -15px auto 10px;
position: relative;
z-index: 1;
box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}
/* 动画效果 */
@keyframes doraemon-bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-5px); }
}
.doraemon-table:hover {
animation: doraemon-bounce 0.5s ease;
}
配色方案
- 主蓝色: #1E90FF
- 浅蓝背景: #E6F2FF
- 金色装饰: #FFD700
- 悬浮色: #B0E0E6
响应式调整

@media (max-width: 600px) {
.doraemon-table {
width: 95%;
font-size: 14px;
}
}
通过组合这些样式,可以创建出具有哆啦A梦特色的动态表格效果,包含标志性的蓝色主题、圆角设计和动画交互。






