跳转到内容

MediaWiki:Common.css:修订间差异

来自還阔以
Admin留言 | 贡献
无编辑摘要
Admin留言 | 贡献
无编辑摘要
第4行: 第4行:
   border-collapse: collapse;
   border-collapse: collapse;
   max-width: 22em;
   max-width: 22em;
   float: rigt;
   float: right;
   clear: right;
   clear: right;
   table-layout: auto;
   table-layout: auto;

2025年9月14日 (日) 23:08的版本

/* 这里放置的CSS将应用于所有皮肤 */
.infobox {
  /* 移除默认边框间距 */
  border-collapse: collapse;
  max-width: 22em;
  float: right;
  clear: right;
  table-layout: auto;
  margin: 1rem 0;
}

th, td {
  /* 添加边框使结构更清晰 */
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

th {
  /* 可以给th设置一个最小宽度作为保底 */
  min-width: 80px;
  background-color: #f5f5f5;
  /* 防止内容换行,确保宽度由完整内容决定 */
  white-space: nowrap;
}

caption {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.2em;
}