Dreamweaver中實現(xiàn)雙背景圖片導航菜單的代碼
發(fā)布時間:2012-06-07 14:54:34 作者:佚名
我要評論

下面的代碼可以幫我們實現(xiàn)雙背景圖片導航
復制代碼
代碼如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>腳本之家chabaoo.cn</title>
</head>
<style type=text/css>
#nav ul {
font-size: 11px;
margin: 0px auto 100px;
padding:0;
font-family: arial, verdana, sans-serif;
white-space: nowrap;
list-style-type: none
}
#nav li {
float: left;
margin:0;
padding:0;
}
#nav a {
float: left;
margin: 0px 2px 0px 0px;
padding:0 0 0 2px;
color: #fff;
background: url(../js/jsneedpic/i200741210911.gif) #040 no-repeat left bottom;
letter-spacing: 1px;
text-decoration: none
}
#nav a strong {
display: block;
background: url(../js/jsneedpic/j200741210920.gif) no-repeat right bottom;
float: left;
padding:5px 16px 5px 12px;/*---右邊底部圖片位置決定重要因素--*/
}
#nav a:hover {
cursor: pointer;
background-color: #080
}
#nav #current a {
background-color: #080
}
#nav {
border-top: #040 8px solid;
background: #fff;
padding:1px 0 0 0;
}
</style>
<body>
<div id="nav">
<ul>
<li><a href="#"><strong>home</strong></a> _fcksavedurl=""#"><strong>home</strong></a>" </li>
<li><a href="#"><strong>privacypolicy</strong></a> </li>
<li id="current"><a href="#"><strong>contact us</strong></a> </li>
<li><a href="#"><strong>products</strong></a> </li>
<li><a href="#"><strong>site map</strong></a> </li>
</ul>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>腳本之家chabaoo.cn</title>
</head>
<style type=text/css>
#nav ul {
font-size: 11px;
margin: 0px auto 100px;
padding:0;
font-family: arial, verdana, sans-serif;
white-space: nowrap;
list-style-type: none
}
#nav li {
float: left;
margin:0;
padding:0;
}
#nav a {
float: left;
margin: 0px 2px 0px 0px;
padding:0 0 0 2px;
color: #fff;
background: url(../js/jsneedpic/i200741210911.gif) #040 no-repeat left bottom;
letter-spacing: 1px;
text-decoration: none
}
#nav a strong {
display: block;
background: url(../js/jsneedpic/j200741210920.gif) no-repeat right bottom;
float: left;
padding:5px 16px 5px 12px;/*---右邊底部圖片位置決定重要因素--*/
}
#nav a:hover {
cursor: pointer;
background-color: #080
}
#nav #current a {
background-color: #080
}
#nav {
border-top: #040 8px solid;
background: #fff;
padding:1px 0 0 0;
}
</style>
<body>
<div id="nav">
<ul>
<li><a href="#"><strong>home</strong></a> _fcksavedurl=""#"><strong>home</strong></a>" </li>
<li><a href="#"><strong>privacypolicy</strong></a> </li>
<li id="current"><a href="#"><strong>contact us</strong></a> </li>
<li><a href="#"><strong>products</strong></a> </li>
<li><a href="#"><strong>site map</strong></a> </li>
</ul>
</div>
</body>
</html>
相關(guān)文章
HTML代碼怎么調(diào)整圖片位置? dw任意改變?yōu)g覽器窗口圖片都居中的代碼
HTML代碼怎么調(diào)整圖片位置?dw想要通過代碼實現(xiàn)圖片頁面居中,該怎么實現(xiàn)呢?下面我們就來看看dw任意改變?yōu)g覽器窗口圖片都居中的代碼2023-03-06dw怎么給框架加內(nèi)容? Dreamweaver向框架中添加內(nèi)容的技巧
dw怎么給框架加內(nèi)容?dw中創(chuàng)建的框架,想要添加內(nèi)容,該怎么添加呢?下面我們就來看看Dreamweaver向框架中添加內(nèi)容的技巧2023-03-03dw怎么給魚片添加邊框線? dreamweaver圖片添加邊框的方法
dw怎么給魚片添加邊框線?dw中的圖片想要添加內(nèi)邊框,外邊框或者雙邊框,該怎么操作呢?下面我們就來看看dreamweaver圖片添加邊框的方法2023-03-03HTML怎么角度代碼調(diào)節(jié)一個角的角度? dw調(diào)節(jié)一個角的角度代碼技巧
HTML怎么角度代碼調(diào)節(jié)一個角的角度?dw調(diào)節(jié)一個角的角度代碼技巧2023-02-23DW2017圖片文字怎么并排排列? HTML圖片/文字并排排列代碼寫法
DW2017圖片文字怎么并排排列?DW2017中的圖片和文字想要并列排列,該怎么操作呢?下面我們就來看看HTML圖片/文字并排排列代碼寫法2023-01-29dw有序列表ol怎么用? HTML頁面添加有序列表ol的教程
dw有序列表ol怎么用? Dreamweaver頁面中國的內(nèi)容需要添加列表效果,該怎么添加有序列表呢?下面我們就來看看HTML頁面添加有序列表ol的教程2023-01-09banner圖片上添加左右按鈕代碼怎么弄? HTML制作banner按鈕的技巧
banner圖片上添加左右按鈕代碼怎么弄?Dreamweaver做banner的時候,想要在圖片上添加左右翻頁按鈕,該怎么設(shè)置呢?下面我們就來看看HTML制作banner按鈕的技巧2023-01-06- html用代碼制作虛線框怎么做?想要在頁面中繪制一個虛線圓形,該怎么制作呢?下面我們就來看看dw制作虛線圓圈的技巧,詳細請看下文介紹2022-11-21
Dw怎么撤銷組合鍵? Dw關(guān)閉按control組合鍵顯示新建文檔對話框的技巧
Dw怎么撤銷組合鍵?Dreamweaver中經(jīng)常會使用快捷鍵創(chuàng)建新文檔,如果想要關(guān)閉這個快捷鍵,該怎么操作呢?下面我們就來看看Dw關(guān)閉按control組合鍵顯示新建文檔對話框的技巧2022-07-19- Dw2018打開只讀文件提示警告怎么辦?Dw2018中打開制度文件就會出現(xiàn)警告,想要關(guān)閉警告,下面我們就來看看Dreamweaver關(guān)閉打開只讀文件時警告用戶的技巧2022-05-19