模板:Banner:修订间差异
来自Age Of History 2 Chinese Wiki
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
<div class="main-page-banner"> | |||
<div class="welcome-text"> | <div class="welcome-text"> | ||
<p>欢迎来到历史时代2中文维基!这里记录了历史时代2(文明时代2)中文社区的人物、团体、模组与重大事件。</p> | <p>欢迎来到历史时代2中文维基!这里记录了历史时代2(文明时代2)中文社区的人物、团体、模组与重大事件。</p> | ||
第14行: | 第14行: | ||
</div> | </div> | ||
</div> | </div> | ||
<style> | |||
.main-page-banner { | |||
width: 100%; | |||
box-sizing: border-box; | |||
} | |||
.welcome-text { | |||
width: 100%; | |||
margin-bottom: 10px; | |||
} | |||
.navigation-links { | |||
display: flex; | |||
width: 100%; | |||
overflow: hidden; /* 隐藏滑动条 */ | |||
} | |||
.nav-button { | |||
flex: 1; /* 平均分配空间 */ | |||
text-align: center; | |||
padding: 10px; | |||
margin: 0 5px; | |||
box-sizing: border-box; | |||
} | |||
.nav-button:first-child { | |||
margin-left: 0; | |||
} | |||
.nav-button:last-child { | |||
margin-right: 0; | |||
} | |||
</style> | |||
</div> | </div> |