需要帮助在相应的内容窗格下方移动HTML + CSS选项卡

时间:2015-05-14 14:31:20

标签: html css tabs

我使用radiobuttons为网页创建一个简单的标签栏,只使用HTML和CSS。

这是当前代码:http://jsfiddle.net/nypd81x9/1/

<ul class="tabs">
<li>
    <input type="radio" name="tabs" id="tab1" checked />
    <label for="tab1">Description</label>
    <div id="tab-content1" class="tab-content">
      <p>content 1</p>
    </div>
  </li>

 <li>
    <input type="radio" name="tabs" id="tab2" />
    <label for="tab2">Specification</label>
    <div id="tab-content2" class="tab-content">
      <p>content 2</p>
    </div>
</li>

如何移动以下内容标签,如下所示:http://i.imgur.com/FzVB9TD.png

先谢谢你

1 个答案:

答案 0 :(得分:2)

是的,只需将CSS #include <iostream> #include <stdio.h> #include <unistd.h> char hello[13]={'H','e','l','l','o',',',' ','W','o','r','l','d'}; int main (){ for(int i=0; i<14; i++){ std::cout<<hello[i]; //it prints the entire string after usleep(100000); //100000 ms, but it should print a char after } //every 100 ms. } 更改为top: 53px;

即可

<强> CSS

bottom:0;

<强> DEMO HERE

相关问题