html5怎样做纵向导航,HTML5怎么做导航栏

满意答案

建议使用FF,Safari,举个例子:

HTML5+CSS3+JavaScript

body {

behavior: url(ie-css3.htc);

}

* {margin:0 auto;padding:0;}

body {font-size:13px;font-family:Arial;}

ul li {list-style:none;}

#menu {

width:982px;

height:35px;

margin-top:20px;display:block;

background: #e3e3e3;

background: -moz-linear-gradient(top, #ccc, #999);

background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#999));

-moz-box-shadow: 1px 1px 3px #333;

-webkit-box-shadow: 1px 1px 3px #333;

box-shadow: 1px 1px 3px #333;

-webkit-border-top-left-radius:4px;;

-webkit-border-top-right-radius:4px;

-moz-border-radius-topleft:4px;

-moz-border-radius-topright:4px;

-webkit-border-bottom-left-radius:4px;

-webkit-border-bottom-right-radius:4px;

-moz-border-radius-bottomleft:4px;

-moz-border-radius-bottomright:4px;

-o-border-radius:4px;

-khtml-border-radius:4px;

text-shadow: 0 1px 0 white;

}

#menu ul {

margin-left:0;

}

#menu ul li {

display:inline;

}

#menu ul li a:link, a:visited {

text-align:center;float:left;width:6.8em;text-decoration:none;padding:7.5px 0.75em;font-size:16px;font-weight:bold;margin-top:0px;border-right:1px solid #ccc;color: #454545;

}

#menu ul li a:hover {

text-decoration:none;

background:-webkit-gradient(linear, left top, left bottom, from(#333), to(#ccc));

background: -moz-linear-gradient(top, #333, #ccc);

-webkit-background-size:0 35px;

color: #ddd;

text-shadow: 0 1px 0 black;

}

.text {

border:1px solid gray;width:150px;height:17px;position:relative;top:8px;left:13px;font-family:Arial;

-webkit-border-top-left-radius:90px;;

-webkit-border-top-right-radius:90px;

-moz-border-radius-topleft:90px;

-moz-border-radius-topright:90px;

-webkit-border-bottom-left-radius:90px;

-webkit-border-bottom-right-radius:90px;

-moz-border-radius-bottomleft:90px;

-moz-border-radius-bottomright:90px;

-o-border-radius:90px;

-khtml-border-radius:90px;

}

(function()

{

if(!0)

return;

var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog, eventsource,figure,footer,hgroup,header,mark,menu,meter,nav,output,progress,section,time,video".split(','),i=0,length=e.length;

while(i

{

document.createElement_x(e[i++])

}

})();

追答: 标签就可以做到引用了,很简单的。网上搜搜html引用吧

01分享举报

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值