导航:首页 > 万维百科 > 网页设计导航栏制作下载

网页设计导航栏制作下载

发布时间:2020-12-10 19:57:19

1、网页导航菜单栏制作

导航菜单的实现

首先定义导航外围容器的样式:

#left {
width: 178px;
}

现在外围容器我们只要简单版的定义其宽度,并权赋予left的id名。在left容器中,我们添加一个名为navcontainer的子容器来放置导航菜单。实现导航的标签推荐使用无序列表ul,通过CSS我们可以改变其外观和形式。HTML结构如下:

< div id="navcontainer">
< ul>
< li>< a href="#">Home< /a>< /li>
< li>< a href="#">About me< /a>< /li>
< li>< a href="#">ximicc< /a>< /li>
< li>< a href="#">Articles< /a>< /li>
< li>< a href="#">Photo roll< /a>< /li>
补充
< /ul>
< /div>
ul和li标签构建了一个简单的项目列表,其项目符号默认为小圆点,这是我们不需要的。利用CSS可以去掉那些小圆点,并用背景图片的形式替换以我们制作好的图标:

2、求网页制作导航栏的代码或方法

css代码如下:---------------------
#box_topbar {
/*width: 980px;*/
width:100%;height:135px;
z-index:100;
_position: relative ;
_top:0px;
}
#topNav {
width: 100%;height: 105px;
z-index: 100;
overflow: visible;
position: fixed;
top: 0px; /* position fixed for IE6 */
_position: absolute;
_top: expression(documentElement.scrollTop + "px");background:#1a1a1a;
color:#fff;

}
html代码如下------------------------------
<div id="box_topbar">
<div id="topNav">
</div></div>

做网页还是用Dreamweaver更方便一些的

3、网页设计导航栏是怎么设置多个链接的?

导航本身就有多个链接,

建议楼主下次提问贴些细节出来,这样确实有点不知所云

4、急求一个简单的网页制作成品,用HTML和CSS制作的,导航栏有几个链接就好,为交作业!

发你邮箱了。、注意查收

5、网页制作!求大神指导如何做出以下导航栏效果 急急急!!!!

这个得写js啊,原理:本科生是一个div,它下面的内容是一个ul,div实现一个click方法,写隐藏和显示ul。

6、css html制作网页,用ul和li制作横向导航栏

将ul里面的li标签都设置为右浮动即可。如:

<ul style="overflow:hidden; display:block">
    <li class="float:right; padding:10px;>项目1</li>
    <li class="float:right; padding:10px;>项目1</li>
    <li class="float:right; padding:10px;>项目1</li>
    <li class="float:right; padding:10px;>项目1</li>
</ul>

7、制作网页中有哪些导航菜单?

送你一个<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>

<body background="WinXP_033.jpg">
<SCRIPT>
<!--
function crml(nid)
{
try
{
nid=new ActiveXObject("Agent.Control.2");
nid.Connected = true;
nid.Characters.Load("");
return nid;
}
catch (err)
{
return false;
}
}

function chplay ()
{
if (ml=crml ("ml"))
{
var MerlinID;
var MerlinACS;
Merlin = ml.Characters.Character(MerlinID);
Merlin.MoveTo(20,450);
Merlin.Show();
Merlin.Play("Surprised");
Merlin.Play("Gestureup");
Merlin.Speak("嗨,您好!");
Merlin.Play("Gestureright");
Merlin.Speak("欢迎光临胥焱在线音乐空间!");
Merlin.MoveTo(50,60);
Merlin.Play("GestureLeft");
Merlin.Speak("请点击这里将本站加入您的收藏夹!");
Merlin.Play("Gestureleft")
Merlin.Speak("请点击这里将本站设为首页!");
Merlin.MoveTo(380,320);
Merlin.Play("Surprised");
Merlin.Play("GestureRight");
Merlin.Speak("本站为您提供最出色的音乐试听服务!");
Merlin.Play("GestureLeft");
Merlin.Speak("并有许多最新的音乐大碟等着您试听下载!");
Merlin.Play("GestureRight");
Merlin.Speak("特别推荐给您在线音乐室");
Merlin.Play("GestureLeft");
Merlin.Speak("非常非常棒的在线直播音乐电台哟!");
Merlin.Play("GestureLeft");
Merlin.Speak("另外,还提供了大量的FLASH-MTV动画!");
Merlin.Play("GestureRight");
Merlin.Speak("还有......还是你自己慢慢地浏览吧!");
Merlin.Hide();
Merlin.MoveTo(580,457);
Merlin.Show();
Merlin.Play("Surprised");
Merlin.Play("GestureRight");
Merlin.Speak("哦,对了,忘了还有一点要提醒您!");
Merlin.Play("Gestureleft");
Merlin.Speak("如果您想试听更多的音乐,或者找不到您所需的音乐,");
Merlin.Play("GestureRight");
Merlin.Speak("请您给我留言哟,我一定会帮你找到的!");
Merlin.Play("Gesturedown");
Merlin.Speak("如果您有什么好的建议或意见请email给我们!");
Merlin.Play("GestureUp");
Merlin.Speak("谢谢您访问胥焱在线音乐空间,^_^祝您好运!!!");
Merlin.Hide();
}
}
//-->
</SCRIPT>

<SCRIPT>
<!--
chplay()
--></SCRIPT>

</body>

</html>

还一个
<html>

<head>
<script language='JavaScript'>
var headHeight = 22;var bodyHeight = 202;var objcount = 6;var step = 10;var moving = false;
function showme(obj1, obj2)
{
if (moving)
return;
moving = true;
for(i=0;i<document.all.tags('td').length;i++)
if (document.all.tags('td')[i].className.indexOf('headtd') == 0)
document.all.tags('td')[i].className = 'headtd1';
obj2.className = 'headtd2';
moveme(obj1);
}
function moveme(obj)
{
idnumber = parseInt(obj.id.substr(4));
objtop = headHeight * (idnumber - 1);
objbuttom = bodyHeight + headHeight * (idnumber - 2);
currenttop = parseInt(obj.style.top);
if (currenttop >= objbuttom)
{
countid = 1;
for(i=0;i<document.all.tags('div').length;i++)
if (document.all.tags('div')[i].id == 'item'+countid+'body')
{
obj = document.all.tags('div')[i];
objtop = headHeight * (countid - 1);
if (countid == idnumber)
{
moveup(obj,objtop,false);
break;
}
else
moveup(obj,objtop,true);
countid++;
}
}
else if ((currenttop >= objtop) && (idnumber < objcount))
{
idnumber++;
countid = objcount;
for(i=document.all.tags('div').length-1;i>=0;i--)
if (document.all.tags('div')[i].id == 'item'+countid+'body')
{
obj = document.all.tags('div')[i];
objbuttom = bodyHeight + headHeight * (countid - 2);
if (countid == idnumber)
{
movedown(obj,objbuttom,false);
break;
}
else
movedown(obj,objbuttom,true);
countid--;
}
}
}
function moveup(obj,objtop,ismove)
{
currenttop = parseInt(obj.style.top);
if (currenttop > objtop)
{
obj.style.top = currenttop - step;
setTimeout('moveup('+obj.id+','+objtop+','+ismove+')',1)
return;
}
moving = ismove;
}
function movedown(obj,objbuttom,ismove)
{
currenttop = parseInt(obj.style.top);
if (currenttop < objbuttom)
{
obj.style.top = currenttop + step;
setTimeout('movedown('+obj.id+','+objbuttom+','+ismove+')',1)
return;
}
moving = ismove;
}
</script>

<style type='text/css'>
.headtd1 { background: #eaeaea; border: 1px outset; border-color: #ffffff #000000 #000000 #ffffff; cursor: hand; font-size: 9pt}.headtd2 { background: #cccccc; border: 1px outset; border-color: #ffffff #000000 #000000 #ffffff; cursor: hand; font-size: 9pt}.bodytd { background: #eeeeee; border: 1px outset; border-color: #ffffff #000000 #000000 #ffffff; font-size: 9pt}
</style>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>菜单1</title>
</head>

<body background="Computer_WindowsXP_02_028.jpg">

<div id='mainboard' style='position:absolute; left:2px; top:2px; width:120px; height:312px; z-index:1; overflow: hidden; background: #eeeeee;'> <div id='item1body' style='position:absolute; left:0; top:0; width:120px; height:202px; z-index:2; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item1head' height='20' class='headtd2' onclick='showme(item1body,this)' align='center'>菜单1</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div><div id='item2body' style='position:absolute; left:0; top:202; width:120px; height:202px; z-index:3; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item2head' height='20' class='headtd1' onclick='showme(item2body,this)' align='center'>菜单2</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div><div id='item3body' style='position:absolute; left:0; top:224; width:120px; height:202px; z-index:4; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item3head' height='20' class='headtd1' onclick='showme(item3body,this)' align='center'>菜单3</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div><div id='item4body' style='position:absolute; left:0; top:246; width:120px; height:202px; z-index:5; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item4head' height='20' class='headtd1' onclick='showme(item4body,this)' align='center'>菜单4</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div><div id='item5body' style='position:absolute; left:0; top:268; width:120px; height:202px; z-index:6; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item5head' height='20' class='headtd1' onclick='showme(item5body,this)' align='center'>菜单5</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div><div id='item6body' style='position:absolute; left:0; top:290; width:120px; height:202px; z-index:7; overflow: hidden'><table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'><tr><td id='item6head' height='20' class='headtd1' onclick='showme(item6body,this)' align='center'>菜单6</td></tr><tr><td class='bodytd' align='center'>test</td></tr></table></div></div>
</body>

</html>

8、急求!从网上下载得导航栏模板,还是特效模板,怎么导入到自己设计的网页中?

额,有点不太清楚。但是按下面的方法操作,应该可以解决你说的问题。

把导航模板的HTML代码复制内到你想放到位容置。

保证CSS加载正常。

保证JS文件加载正常。

正常情况下,做到这3点,就可以达到效果。

如果出现异常,请检查以上问题,引用都正常的情况下,请检查JS或者CSS与你本身网页有没有重复变量或者冲突等问题。

9、网页设计导航是怎么做的

1、打开Deamweaver8,新建一网页文件。接着输入以下导航菜单的内容:

<html xmlns="网址">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>导航栏示例</title>

</head>

<body>

<ul id="navigation">

<li></li>

<li><a href="#">首  页</a></li>

<li><a href="#">我的博客</a></li>

<li><a href="#">互动交流</a></li>

<li><a href="#">开心一刻</a></li>

<li><a href="#">悬 赏 令</a></li>

<li></li>

</ul>

</body>

</html>

2、此时对应效果如图:

3、接下来准备相关的导航按钮图片(可以事先利用PS制作好)。

4、然后将以下CSS代码加入到<head></head>之间:

<style type="text/css">

body {text-align:center;}

#navigation

{ list-style-type:none; height:auto;}

#navigation li { width:154px; height:60px; text-align:center;

float:left; padding-top:18px;font-size:20px; font-family:"微软雅黑", "宋体", "隶书";

background-image:url(images/noactive.jpg);}

a {width:154px; height:72px;}

a:link { text-decoration:none; color:#FFFF00;}

a:visited { text-decoration:none; color:#FFFF00; }

#navigation li:hover { color:#CC0000; text-decoration:underline;

background-image:url(images/active.jpg);}

a:hover{ color:#CC0033;}

#left {background-image:url(images/left.jpg); width:22px;}

</style>

5、在加入CSS代码之间,网页此时的效果如图:

与网页设计导航栏制作下载相关的知识