我使用单选按钮列表“”创建了一个选项卡式区域。这些现在水平堆叠。
我现在需要在选项卡区域的内容区域内创建一个列表。但是当我创建列表时,列表也是水平的。
有没有办法在 UL 中定位 UL 并“重置它”?或者也许我可以使用 a 但将数字更改为项目符号?
这是一个小提琴链接: http: //jsfiddle.net/SteveDavies/4Njb6/ 这是选项卡区域的一些 css
.tabs input[type=radio] {
position: absolute;
top: -9999px;
left: -9999px;
}
.tabs {
width: 670px;
float: none;
list-style: none;
position: relative;
padding: 0;
margin: 75px auto;
}
.tabs li{
float: left;
}
.tabs label {
display: block;
padding: 10px 20px;
border-radius: 0px 0px 0 0;
color: #ffffff;
font-size: 16px;
font-weight: BOLD;
font-family: helvetica;
background: #ccc;
cursor: pointer;
position: relative;
top: 3px;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
clear:both;
}
.tabs label:hover {
background: #adafaf;
top: 0px;
}
这是其中一个选项卡的 HTML 代码:
<div style="clear:both;">
<ul class="tabs">
<!-- FIND ME TAB -->
<li>
<input type="radio" checked name="tabs" id="tabfindme">
<label for="tabfindme">FIND ME</label>
<div id="tab-content1" class="findmecontent animated fadeIn"
>
希望你能帮忙!
非常感谢
史蒂夫