0

我使用单选按钮列表“”创建了一个选项卡式区域。这些现在水平堆叠。

我现在需要在选项卡区域的内容区域内创建一个列表。但是当我创建列表时,列表也是水平的。

有没有办法在 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" 

>

希望你能帮忙!

非常感谢

史蒂夫

4

2 回答 2

0

我添加了css,这可能会对你有所帮助。我希望这是你所期待的。让我知道它是否不是预期的输出。

CSS:

.normalul h3 li,.findmecontent div ul li{
    float:none;
}

小提琴演示

于 2014-06-19T10:58:56.907 回答
-1

添加这个:

.normalul{ 显示:内联块;}

.normalul li { 浮动:左;明确:两者;}

??

于 2014-06-19T10:52:47.557 回答