首页
随机
附近
登录
设置
关于陋室
免责声明
陋室
搜索
查看“︁Template:Infobox/styles.css”︁的源代码
←
Template:Infobox/styles.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于这些用户组的用户执行:
用户
、
自动确认用户
您可以查看和复制此页面的源代码。
/* ============================= */ /* Infobox 样式优化 */ /* ============================= */ .infobox { max-width: 300px; /* 设置信息框的最大宽度 */ width: 100%; /* 允许其在容器内自适应 */ margin: 0 auto; /* 使 .infobox 居中 */ border: 1px solid #ddd; /* 添加一个轻微的边框 */ border-radius: 8px; /* 让边框变得圆润 */ background-color: #f9f9f9; /* 设置轻微的背景色 */ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 为 .infobox 添加阴影效果 */ padding: 10px; /* 增加内边距使内容不显得紧凑 */ } /* 限制 Infobox 第一列宽度(约 5 个汉字) */ .infobox td:first-child, .infobox th:first-child { width: 12em; /* 增加第一列宽度 */ min-width: 12em; /* 确保不会缩小 */ } /* 暗色模式微调 */ .skin-theme-clientpref-night .infobox { border-color: #2f2f2f; background-color: #1c1c1c; box-shadow: 0 0 12px rgba(0, 0, 0, 0.45); }
返回
Template:Infobox/styles.css
。