我需要讓標籤像這樣由具有水平滾動和我使用的HTML 5 figure
和figure
標題如何使2級滾動標籤在CSS像這樣的HTML 5
HTML例如
<div class="footernav">
<a href="javascript:void(0)">
<figure> <img src="http://lorempixel.com/200/200/fashion/" class="fluid">
<figcaption>
<h3>Product Name</h3>
</figcaption>
</figure>
</a>
</div>
CSS
.footernav {white-space;no-wrap; padding-top: 0.2%; border-top: 1px solid white; overflow: auto; white-space:nowrap; padding-bottom: 1.9%;}
.footernav a { text-decoration: none; font-weight: bold; display: inline-block; padding-right: 1.5%; padding-left: 1.5%; text-align: center; margin-top: 1.1em; overflow:hidden; }
.footernav figure:last-child { margin-right: 0; }
.footernav img { min-width: 118px; max-width: 118px; padding:3px; }
figure{margin:0}
.footernav a:hover,
.footernav a.selected { border-top-left-radius: 15px;
border-top-right-radius: 15px; background:red}
.footernav h3 { color: #000; font-weight: 700; margin-top: 0; margin-bottom: 0.3em; font-size: 1.1em; text-transform: uppercase; margin-top:0.5em }
參看H ere http://jsfiddle.net/jitendravyas/XnAsL/1/(鏈接更新)
現在如何到第二級,並使其像下面的圖片?
兩個級別都應滾動。
困惑....你想要兩行產品還是當我在第一行單擊一個產品時,下一行應該彈出,這也應該是滾動......? – Starx 2011-12-31 10:58:42
@Starx - 兩者。當頁面將被打開時,任何一個將被默認選擇。但用戶可以從第一行中選擇任何其他項目。第二行子項與第一行的主要選擇項目有關。第二行的itmes鏈接到他們的產品頁面。第一排物品只會打開子版 – 2011-12-31 11:02:00