CSS实现的中英文双语导航菜单

None.gif <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >  
None.gif
< html  xmlns ="http://www.w3.org/1999/xhtml"  xml:lang ="en"  lang ="en" >  
None.gif
< head >  
None.gif
< meta  http-equiv ="Content-Type"  content ="text/html; charset=gb2312"   />  
None.gif
< meta  name ="Keywords"  content ="bilingual menu,中英文双语菜单"   />  
None.gif
< meta  http-equiv ="Description"  content ="完全用CSS实现的中英文双语导航菜单"   />  
None.gif
< meta  content ="all"  name ="robots"   />  
None.gif
< meta  name ="author"  content ="forestgan"   />  
None.gif
< meta  name ="copyright"  content ="http://www.forest53.com"   />  
None.gif
< title > 完全用CSS实现的中英文双语导航菜单 </ title >  
ExpandedBlockStart.gifContractedBlock.gif
< style  type ="text/css" > dot.gif  
ExpandedSubBlockStart.gifContractedSubBlock.gifa
{dot.gif}{ 
InBlock.gifcolor
: #FFFF99; 
InBlock.giftext-decoration
: none; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gifa:hover
{dot.gif}{ 
InBlock.gifcolor
: #FFFFFF; 
InBlock.giftext-decoration
: underline; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gif#nav
{dot.gif}{ 
InBlock.gifpadding
: 10px 10px 0; 
InBlock.giffont-size
: 12px; 
InBlock.giffont-weight
: bold; 
InBlock.gifmargin
: 1em 0 0; 
InBlock.giflist-style
:none; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gif#nav li
{dot.gif}{ 
InBlock.giffloat
: left; 
InBlock.gifmargin-right
: 1px; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gif.bi
{dot.gif}{ 
InBlock.gifposition
: relative; 
InBlock.gifz-index
: 0; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gif.bi:hover
{dot.gif}{ 
InBlock.gifz-index
: 99; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gif.bi:hover span
{dot.gif}{ 
InBlock.gifvisibility
: visible; 
InBlock.giftop
: 0; 
InBlock.gifleft
: 0; 
InBlock.gifcursor
: pointer; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gif.bi span
{dot.gif}{ 
InBlock.gifposition
: absolute; 
InBlock.gifleft
: -999em; 
InBlock.gifvisibility
: hidden; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gif#nav li a,.bi:hover span
{dot.gif}{ 
InBlock.gifline-height
: 20px; 
InBlock.giftext-decoration
: none; 
InBlock.gifbackground
: #DDDDDD; 
InBlock.gifcolor
: #666666; 
InBlock.gifdisplay
: block; 
InBlock.gifwidth
: 80px; 
InBlock.giftext-align
: center; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gif#nav li a:hover,.bi:hover span
{dot.gif}{ 
InBlock.gifcolor
: #FFFFFF; 
InBlock.gifbackground
: #DC4E1B; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gif.bi:hover span
{dot.gif}{ 
InBlock.gifpadding-top
: 2px; 
ExpandedSubBlockEnd.gif
}
 
ExpandedSubBlockStart.gifContractedSubBlock.gif#navbar
{dot.gif}{ 
InBlock.gifbackground
: #DC4E1B; 
InBlock.gifheight
: 8px; 
InBlock.gifoverflow
: hidden; 
InBlock.gifclear
: both; 
ExpandedBlockEnd.gif
}
 
None.gif
</ style >  
None.gif
< link  href ="../css/main.css"  rel ="stylesheet"  type ="text/css"   />  
None.gif
</ head >  
None.gif
< body >  
None.gif
< div  id ="top" >  
None.gif
< ul  id ="nav" >  
None.gif
< li >< class ="bi"  href ="Http://www.junstudio.org/" > Home < span > 首 页 </ span ></ a ></ li >  
None.gif
< li >< class ="bi"  href ="Http://www.junstudio.org/blog" > Blog < span > 日志 </ span ></ a ></ li >  
None.gif
< li >< class ="bi"  href ="Http://www.junstudio.org/guestbook" > guestbook < span > 留言本 </ span ></ a ></ li >  
None.gif
< li >< class ="bi"  href ="Http://www.pickbar.com/" > Pickbar < span > 精品吧 </ span ></ a ></ li >  
None.gif
< li >< class ="bi"  href ="Http://www.fansir.com/" > fansir < span > 樊SIR </ span ></ a ></ li >  
None.gif
</ ul >  
None.gif
< div  id ="navbar" ></ div >  
None.gif
</ body >  
None.gif
</ html >

转载于:https://www.cnblogs.com/xiaojiangjiang/archive/2007/06/07/csslanguage.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值