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

導航分隔符

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

問題描述

我需要在導航元素之間添加分隔符.分隔符是圖像.

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

我的 HTML 結構是這樣的:ol >李>一個>img.

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

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

Here I come to two possible solutions:

  1. 要添加更多 li 標簽進行分隔(噓!),
  2. 在每個元素的圖像中包含分隔符(這更好,但它使用戶可能點擊,例如,主頁",但進入服務",因為它們是一個在另一個之后,用戶可以不小心點擊了屬于服務"的分隔符);
  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 (使用條件樣式表)并可能應用負邊距到邊緣之一.

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.

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

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

相關文檔推薦

How to check for duplicate CSS rules?(如何檢查重復的 CSS 規(guī)則?)
Remove duplicate CSS declarations across multiple files(刪除多個文件中的重復 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 列導航?)
主站蜘蛛池模板: 久久久.com | 在线视频 欧美日韩 | 欧美日韩精选 | 少妇无套高潮一二三区 | 国产精品美女 | 97久久精品午夜一区二区 | 国产精品18毛片一区二区 | 亚洲精品在线视频 | 国产一区二区三区在线 | 亚洲不卡在线视频 | 三级黄色片在线观看 | 欧美日韩亚洲国产综合 | 欧美中文字幕 | 国产91久久久久蜜臀青青天草二 | 日韩精品一区二区三区视频播放 | 国产一区在线看 | 欧美精品一区二区三区在线 | 国产一区2区 | 欧美日韩免费 | 欧州一区二区三区 | 综合二区 | 国产精品成人一区二区三区夜夜夜 | 国产精品国产成人国产三级 | 国内av在线 | 国产三区av| 色婷婷狠狠 | 91色视频在线观看 | 黄视频免费 | 中文字幕久久久 | www.亚洲成人网 | 午夜在线视频 | 91精品国产91久久久久久密臀 | 在线亚洲免费 | 91污在线| 精精国产xxxx视频在线播放 | 亚洲国产一区二区在线 | 日产精品久久久一区二区福利 | 日韩欧美国产精品综合嫩v 一区中文字幕 | 97国产精品 | a级在线免费 | 最新国产福利在线 |