<div class="html">
<div class="wrap">
<div class="full">
<div class="content-tab-box">
<ul class="page-box">
<li class="roleRight animated">
<div id="pageTwo" class="pageWarp">
<div class="pro-system num-two">
<!--场景图-->
<div class="container">
<div class="tab-system-wrapper">
<!--tab section 1-->
<input type="radio" name="tab-radio" class="tab-radio" id="tab-system-1" checked>
<label for="tab-system-1" class="tab-title tab-handler-1"><i class="iconfont icon-Workonsite work-font"></i>Work onsite</label>
<div class="tab-system-content tab-content-1">这里是默认显示的内容<div>
<!--tab section 2-->
<input type="radio" name="tab-radio" class="tab-radio" id="tab-system-2">
<label for="tab-system-2" class="tab-title tab-handler-2"><i class="iconfont icon-Workincloud work-font"></i>Work in cloud</label>
<div class="tab-system-content tab-content-2">
<div class="systemup animated">
<img id="combination" src="img/cloud.png" style="width: 100%;" />
</div>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="roleRight animated"></li>
<li class="roleRight animated"></li>
<li class="roleRight animated"></li>
</ul>
</div>
</div>
</div>
</div>
默认进来后的显示效果应该是这样的:
现在却是这样,没有被选中的:
我查看过input的属性 :<input type="radio" name="tab-radio" class="tab-radio" id="tab-radio-1" checked>,为什么刷新之后,就不显示了呢?只有再点击label隐藏的内容才会显示?
我没有写js,都是css。
谢谢!
感谢 djyuning :