久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

導(dǎo)航分隔符

Separators for Navigation(導(dǎo)航分隔符)
本文介紹了導(dǎo)航分隔符的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我需要在導(dǎo)航元素之間添加分隔符.分隔符是圖像.

I need to add separators between elements of navigation. Separators are images.

我的 HTML 結(jié)構(gòu)是這樣的:ol >李>一個>img.

My HTML structure is like: ol > li > a > img.

這里我提出了兩種可能的解決方案:

Here I come to two possible solutions:

  1. 要添加更多 li 標(biāo)簽進行分隔(噓!),
  2. 在每個元素的圖像中包含分隔符(這更好,但它使用戶可能點擊,例如,主頁",但進入服務(wù)",因為它們是一個在另一個之后,用戶可以不小心點擊了屬于服務(wù)"的分隔符);
  1. To add more li tags for separation (boo!),
  2. Include separator in image of each element (this is better, but it makes possibility that user may click on, example, "Home", but get to "Services", because they are one behind the other and user may accidentally click on separator that belongs to "Services");

怎么辦?

推薦答案

只需在li上使用分隔圖作為背景圖即可.

Simply use the separator image as a background image on the li.

要讓它只出現(xiàn)在列表項之間,請將圖像放在 li 的左側(cè),但不要放在第一個.

To get it to only appear in between list items, position the image to the left of the li, but not on the first one.

例如:

#nav li + li {
    background:url('seperator.gif') no-repeat top left;
    padding-left: 10px
}

此 CSS 將圖像添加到跟在另一個列表項之后的每個列表項 - 換句話說,除了第一個之外的所有列表項.

This CSS adds the image to every list item that follows another list item - in other words all of them but the first.

注意.請注意 相鄰選擇器 (li + li) 在 IE6 中不起作用,因此您只需將背景圖像添加到常規(guī) li (使用條件樣式表)并可能應(yīng)用負邊距到邊緣之一.

NB. Be aware the adjacent selector (li + li) doesn't work in IE6, so you will have to just add the background image to the conventional li (with a conditional stylesheet) and perhaps apply a negative margin to one of the edges.

這篇關(guān)于導(dǎo)航分隔符的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How to check for duplicate CSS rules?(如何檢查重復(fù)的 CSS 規(guī)則?)
Remove duplicate CSS declarations across multiple files(刪除多個文件中的重復(fù) CSS 聲明)
Google Drive CSS/JS Returns 404 Error(Google Drive CSS/JS 返回 404 錯誤)
Adding space between buttons?(在按鈕之間添加空間?)
Sencha Touch Ext.navigation.View pop to root(Sencha Touch Ext.navigation.View pop to root)
Simple 2-column navigation with CSS and a single list?(使用 CSS 和單個列表的簡單 2 列導(dǎo)航?)
主站蜘蛛池模板: 综合久久久久 | 日日噜噜噜夜夜爽爽狠狠视频97 | 91精品国产综合久久久久久 | 国产精品成人一区二区三区 | 超碰人人插 | 日韩毛片在线观看 | 男人午夜视频 | 密乳av| 中文字幕一区二区三区乱码在线 | 久久美女网 | 久久久久久久久久久久久久国产 | 国产美女高潮 | 国产精品久久久久久久久久三级 | 九九亚洲 | 噜噜噜色网 | 中文字幕av网址 | 久久免费视频网 | 成年女人免费v片 | 福利视频网站 | 国产一级毛片视频 | 91精品国产色综合久久 | 神马久久春色视频 | 999久久久 | 一级毛片视频 | 久久精品二区亚洲w码 | 美日韩精品 | 91新视频| 日韩av看片 | 古装三级在线播放 | 欧美黄视频 | 久久久做| 久久久久久久国产 | 精精精精xxxx免费视频 | 久久精品色视频 | 亚洲逼院| 在线播放亚洲 | 精品免费av | 中文字幕日韩av | av永久免费| 国产精品日产欧美久久久久 | 一区二区三区四区在线 |