HTML表单包含选项卡

时间:2015-10-29 11:33:18

标签: java html jsp

是否有任何方法可以让我在一个Web应用程序上创建html表单,该应用程序包含窗口中的这些选项卡等选项卡而没有j查询?

我想只使用HTML和Java代码。

enter image description here

3 个答案:

答案 0 :(得分:0)



<ul class="list-inline">

<ul>
  <li><a href="#">Home</a></li>
  <li><a href="#">Menu 1</a></li>
  <li><a href="#">Menu 2</a></li>
  <li><a href="#">Menu 3</a></li>
</ul>
&#13;
&#13;
&#13;

答案 1 :(得分:0)

type schedFunc func(int, int)

答案 2 :(得分:0)

看看这个:

这来自this webpage,并使用CSS3和HTML5进行整个交易

< head>

  < style>
    article.tabs{
      position: relative;
      display: block;
      width: 40em;
      height: 15em;
      margin: 2em auto;
    }
article.tabs section{
position: absolute;
display: block;
top: 1.8em;
left: 0;
height: 12em;
padding: 10px 20px;
background-color: #ddd;
border-radius: 5px;
box-shadow: 0 3px 3px rgba(0,0,0,0.1);
z-index: 0;
 }

article.tabs section:first-child
{
    z-index: 1;
}

article.tabs section h2
{
    position: absolute;
    font-size: 1em;
    font-weight: normal;
    width: 120px;
    height: 1.8em;
    top: -1.8em;
    left: 10px;
    padding: 0;
    margin: 0;
    color: #999;
    background-color: #ddd;
    border-radius: 5px 5px 0 0;
}

article.tabs section:nth-child(2) h2
{
    left: 132px;
}

article.tabs section:nth-child(3) h2
{
    left: 254px;
}

article.tabs section h2 a
{
    display: block;
    width: 100%;
    line-height: 1.8em;
    text-align: center;
    text-decoration: none;
    color: inherit;
    outline: 0 none;
}
  </style>
</head>

<body>....
<article class="tabs">

    <section id="tab1">
        <h2><a href="#tab1">Tab 1</a></h2>
        <p>This content appears on tab 1.</p>
    </section>

    <section id="tab2">
        <h2><a href="#tab2">Tab 2</a></h2>
        <p>This content appears on tab 2.</p>
    </section>

    <section id="tab3">
        <h2><a href="#tab3">Tab 3</a></h2>
        <p>This content appears on tab 3.</p>
    </section>

</article>
</body>