tabView的實現問題

來源:互聯網
上載者:User

實現:

 

 

My Code:

 

 1 <style type="text/css">
2 .tab
3 {
4 border: solid 1px #CCC;
5 width: 110px;
6 height: 26px;
7 display: block;
8 float: left;
9 padding-top: 6px;
10 margin-right: 3px;
11 text-align: center;
12 }
13 .content
14 {
15 clear: left;
16 border: solid 1px #ccc;
17 border-top: solid 6px blue;
18 vertical-align: middle;
19 padding-left: 7px;
20 padding-top: 20px;
21 width: 450px;
22 height: 40px;
23 }
24 span:hover
25 {
26 border-bottom-color: Blue;
27 background-color: Blue;
28 color: White;
29 }
30 #one
31 {
32 background-color: Blue;
33 color: White;
34 border: solid 1px #000;
35 border-bottom-color: Blue;
36 }
37  </style>
38  </head>
39  <body>
40 <span class="tab" id="one">Tab One Label</span>
41 <span class="tab" id="two">Tab Two Label</span>
42 <span class="tab" id="three">Tab Three Label</span>
43 <div class="content" id="content">Tab One Content</div>
44  </body>

 

測試環境 : IE8

 

問題1:左邊線條沒對齊。

問題2:mouseover後面的tab時,第一個tab無法變成 白底黑字

其他問題

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.