淘宝网顶部导航菜单效果

2010082309343877.jpg

 

演示:http://www.websjy.com/club/websjy_index/29/

 

 

ContractedBlock.gif ExpandedBlockStart.gif 代码
 
   
<! 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" />
< meta name ="keywords" content ="JS代码,菜单导航,JS广告代码,JS特效代码" />
< title > 淘宝网顶部导航菜单_懒人图库 </ title >
< LINK href ="http://www.websjy.com/club/websjy_index/29/css/css.css" rel =stylesheet >
< SCRIPT src ="http://www.websjy.com/club/websjy_index/29/js/taobao.js" ></ SCRIPT >
</ head >

< body style ="text-align:center" >

< div id =page >
< div class ="chl-poster simple" id =header >
< div id =site-nav >
< UL class =quick-menu >
< LI class =home >< A href ="#" > 淘宝网首页 </ A > </ LI >
< LI >< A href ="#" > 我要买 </ A ></ LI >
< LI class ="mytaobao menu-item" >
< div class =menu >
< A class =menu-hd href ="#" target =_top rel =nofollow > 我的淘宝 < B ></ B ></ A >
< div class =menu-bd >
< div class =menu-bd-panel >
< div >
< A href ="#" rel =nofollow > 已买到的宝贝 </ A >
< A href ="#" rel =nofollow > 已卖出的宝贝 </ A >
</ div >
</ div >
< S class =r ></ S >< S class =rt ></ S >< S class =lt ></ S >< S class =b ></ S >< S class ="b b2" ></ S >< S class =rb ></ S >< S class =lb ></ S >
</ div >
</ div >
</ LI >
< LI class =cart >< A href ="#" rel =nofollow >< S ></ S > 购物车 </ A ></ LI >
< LI class =favorite >< A href ="#" rel =nofollow > 收藏夹 </ A ></ LI >
< LI class ="search menu-item" >
< div class =menu >< SPAN class =menu-hd >< S ></ S > 搜索 < B ></ B ></ SPAN >
< div class =menu-bd >
< div class =menu-bd-panel >
< FORM name =topSearch action =http://s.taobao.com/search?ssid=s0 >< INPUT
maxLength =60 name =q >< BUTTON type =submit > 搜 索 </ BUTTON > < INPUT type =hidden
value =newsearch name =shopf > </ FORM >
</ div >
< S class =r ></ S >< S class =rt ></ S >< S class =lt ></ S >< S class =b ></ S >< S class ="b b2" ></ S >< S class =rb ></ S >< S class =lb ></ S >
</ div >
</ div >
</ LI >
< LI class ="services menu-item last" >
< div class =menu >
< A class =menu-hd href ="#" target =_top > 网站导航 < B ></ B ></ A >
< div class =menu-bd style ="WIDTH: 210px; HEIGHT: 262px; _width: 202px" >
< div class =menu-bd-panel >
< DL >
< DT >< A href ="#" > 购物 </ A >
< DD >
< A href ="#" > 商城 </ A >
< A href ="#" > 电器城 </ A >
< A href ="#" > 嗨淘 </ A >
< A href ="#" > 全球购 </ A >
< A href ="#" > 跳蚤街 </ A >
< A href ="#" > 礼物 </ A >
< A href ="#" > 促销 </ A >
< A href ="#" > 机票 </ A >
< A href ="#" > 彩票 </ A >
< A href ="#" > 创意 </ A >
</ DD >
</ DL >
< DL >
< DT >< A href ="#" > 门户 </ A >
< DD >< A href ="#" > 服饰 </ A > < A href ="#" > 女人 </ A > < A href ="#" > 美容 </ A > < A href ="#" > 居家 </ A > < A href ="#" > 男人 </ A > < A href ="#" > 数码 </ A > < A href ="#" > 亲子 </ A > < A href ="#" > 时尚 </ A > < A href ="#" > 试用 </ A > < A href ="#" > 心得 </ A > < A href ="#" > 帮派 </ A > < A href ="#" > 画报 </ A > < A href ="#" > 淘女郎 </ A > < A href ="#" > 社区 </ A > < A href ="#" > 宝贝传奇 </ A >
</ DD >
</ DL >
< DL >
< DT >< A href ="#" > 淘江湖 </ A > &nbsp; < A href ="#" > 手机淘宝 </ A > </ DT ></ DL >
< DL >
< DT >< A href ="#" > 帮助中心 </ A >
< DD >< A href ="#" > 交易安全 </ A > < A href ="#" > 维权中心 </ A > </ DD ></ DL >
< DL class =last >
< DD >< STRONG style ="FONT-WEIGHT: bold" >< A href ="#" > 更多内容 </ A ></ STRONG ></ DD >
</ DL >
</ div >
< S class =r ></ S >< S class =rt ></ S >< S class =lt ></ S >< S class =b style ="WIDTH: 169px" ></ S >< S class ="b b2" style ="WIDTH: 169px" ></ S >< S class =rb ></ S >< S class =lb ></ S >
</ div >
</ div >
</ LI >
</ UL >
</ div >
</ div >
</ div >
< SCRIPT type =text/javascript >
TB.Header.init();
</ SCRIPT >
</ body >
</ html >

 

 

 

 

转载于:https://www.cnblogs.com/websjy/archive/2010/08/23/1806156.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在Vue项目中创建一个顶部导航栏,你可以按照以下步骤进行操作: 1. 在Vue项目的`src`文件夹中,创建一个名为`components`的文件夹(如果还没有的话)。 2. 在`components`文件夹中创建一个名为`Navbar.vue`的Vue组件文件。 3. 在`Navbar.vue`文件中,编写你的导航栏组件的代码。例如,你可以使用`v-for`指令来循环遍历导航项,并使用`router-link`组件来实现导航链接。以下是一个简单的示例: ```html <template> <nav> <ul> <li v-for="item in navItems" :key="item.id"> <router-link :to="item.path">{{ item.label }}</router-link> </li> </ul> </nav> </template> <script> export default { data() { return { navItems: [ { id: 1, label: 'Home', path: '/' }, { id: 2, label: 'About', path: '/about' }, { id: 3, label: 'Contact', path: '/contact' }, ], }; }, }; </script> <style scoped> nav { background-color: #f0f0f0; padding: 10px; } ul { list-style-type: none; margin: 0; padding: 0; } li { display: inline-block; margin-right: 10px; } a { text-decoration: none; color: #333; } </style> ``` 在这个示例中,我们使用了一个简单的导航栏,其中包含了三个导航项(Home、About和Contact),点击导航项会跳转到相应的路由页面。 4. 在你的Vue项目的主组件(一般是`App.vue`)中,使用`<navbar></navbar>`标签引入刚刚创建的`Navbar.vue`组件。 ```html <template> <div> <navbar></navbar> <!-- 其他内容 --> </div> </template> <script> import Navbar from './components/Navbar.vue'; export default { components: { Navbar, }, }; </script> ``` 5. 最后,根据你的项目需要,对导航栏进行样式调整。 这样,你就成功地创建了一个简单的顶部导航栏。你可以根据自己的需求对导航栏进行进一步的定制和扩展。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值