用户讨论:Neko copper:修订间差异

来自Mindustry中文wiki
无编辑摘要
 
(未显示2个用户的2个中间版本)
第1行: 第1行:
<div class="mdtLayout mdtLight mdtWrapRail">
<div class="mdtLayout mdtLight mdtWrapRail">
<div class="mdtMain">
<div class="mdtMain">
<span class="heimu"> 测试 </span>
 
<div class="tab-container">
 
  <div class="tab-buttons">
煤炭发电机=
    <button class="tab-button active" data-tab="tab1">煤炭发电机</button>
{| class="mdtSideTable"
    <button class="tab-button" data-tab="tab2">太阳能发电机</button>
! 输入 !!<!-- 不要删除这里的空白表头 -->
  </div>
! 输出 !!
 
! 消耗电力
  <div id="tab1" class="tab-content active">
! 生产时间
    {| class="mdtSideTable"
|-
    ! 输入 !!<!-- 不要删除这里的空白表头 -->
| 1.33[[File:Item-coal-ui.png|18px|link=煤炭]]/秒 || (2[[File:Item-coal-ui.png|18px|link=煤炭]])
    ! 输出 !!
| 0.66[[File:Item-graphite-ui.png|18px|link=石墨]]/秒 || (1[[File:Item-graphite-ui.png|18px|link=石墨]])
    ! 消耗电力
| 无
    ! 生产时间
| 1.5秒
    |-
|}
    | 1.33[[File:Item-coal-ui.png|18px|link=煤炭]]/秒 || (2[[File:Item-coal-ui.png|18px|link=煤炭]])
|-|
    | 0.66[[File:Item-graphite-ui.png|18px|link=石墨]]/秒 || (1[[File:Item-graphite-ui.png|18px|link=石墨]])
太阳能发电机=
    | 无
{| class="mdtSideTable"
    | 1.5秒
! 输入 !!<!-- 不要删除这里的空白表头 -->
    |}
! 输出 !!
  </div>
! 消耗电力
 
! 生产时间
  <div id="tab2" class="tab-content">
|-
    {| class="mdtSideTable"
| 无 ||  
    ! 输入 !!<!-- 不要删除这里的空白表头 -->
| 1[[File:Item-energy-ui.png|18px|link=能量]]/秒 ||  
    ! 输出 !!
| 无
    ! 消耗电力
| 持续
    ! 生产时间
|}
    |-
 
    | 无 ||  
</div>
    | 1[[File:Item-energy-ui.png|18px|link=能量]]/秒 ||  
 
    | 无
    | 持续
    |}
  </div>
</div>
</div>


<style>
== 在用户讨论页测试??? ==
.tab-container {
  margin: 1em 0;
}
.tab-buttons {
  display: flex;
  border-bottom: 1px solid #ccc;
}
.tab-button {
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-bottom: none;
  cursor: pointer;
  margin-right: 4px;
  border-radius: 4px 4px 0 0;
}
.tab-button.active {
  background: white;
  border-bottom: 1px solid white;
  margin-bottom: -1px;
}
.tab-content {
  display: none;
  padding: 10px;
  border: 1px solid #ccc;
  border-top: none;
}
.tab-content.active {
  display: block;
}
</style>


<script>
创建一个新页面测试然后丢弃页面岂不是更好
document.querySelectorAll('.tab-button').forEach(button => {
  button.addEventListener('click', function() {
    // 移除所有active类
    document.querySelectorAll('.tab-button, .tab-content').forEach(el => {
      el.classList.remove('active');
    });
   
    // 激活当前按钮和对应内容
    this.classList.add('active');
    const tabId = this.getAttribute('data-tab');
    document.getElementById(tabId).classList.add('active');
  });
});
</script>


</div>
这样独立一些,一堆人挤在一个页面测试太乱了

2026年3月3日 (二) 22:16的最新版本


煤炭发电机=

输入 输出 消耗电力 生产时间
1.33/秒 (2) 0.66/秒 (1) 1.5秒

|-| 太阳能发电机=

输入 输出 消耗电力 生产时间
1文件:Item-energy-ui.png/秒 持续

在用户讨论页测试???

创建一个新页面测试然后丢弃页面岂不是更好

这样独立一些,一堆人挤在一个页面测试太乱了