導航:首頁 > 萬維百科 > 網頁設計中什麼是導航欄

網頁設計中什麼是導航欄

發布時間:2020-10-15 22:16:27

1、網頁製作 導航欄和分類欄怎麼在子頁面也共用呢

首先將導航欄或分類欄目製作成一個獨立的文件,這個文件需要根據你使用不同的網頁編程語言來進行不同的命名,比如.html .asp .php .jsp;再將這文件放置到需要調用的地方即可:
HTML靜態網頁調用:
<include file="header.htm" />
ASP網頁調用:
<!--#include.file="header.asp"-->
PHP網頁調用:
<?php include 'header.php';?>

2、導航欄是網頁設計中非常重要的元素。

設計網頁(⊙_⊙)? 我覺得不是專業的設計出來也不怎麼好看 建議去買個套裝 我之前就是自己學設計 學了3天頭都搞大了 結果後來我在淘寶網店和拍拍網店買的套裝 真劃算 30塊錢就解決了 最重要的是節約了我的時間 弄那個不懂的人真的很費頭腦 就拿PS來說吧 我學那個逐幀動畫就學了很久 最後祝你好運!!!

3、網頁設計導航是怎麼做的

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代碼之間,網頁此時的效果如圖:

4、網頁導航欄的設計方式有哪些

導航欄的設計方式有很多種,通過專業的PS設計軟體,可以結合自己的靈感設計,網上有很多可以做為參考或欣賞。

5、製作網頁中有哪些導航菜單?

送你一個<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>

6、UI設計網頁時,導航欄尺寸規格一般是多少

目前ios的尺寸都是_@2x,除了plus需要注意導航欄60PX,底部標簽欄148PX,尺寸需要_@3X也就是1.5倍計算。

7、網頁設計中,怎麼做成上面是導航條,下面是內容....... (我要簡單的代碼,讓我做參考)

沒明白你什麼意思!你是說就像百度知道首頁一樣,導航條在上面,導航條的下面也有內容?還是內容在導航條裡面,滑鼠放在導航條上自動彈出導航內容的效果?

8、網頁設計中的導航欄問題

<style type="text/css">
<!--
ul,li{margin:0;padding:0;}
#nav {
height: 400px;
width: 200px;
border: 1px solid #000000;
}
#nav li {
list-style-image: none;
list-style-type: none;
background-color: #99FF00;
}
#nav li:hover{ background-color: #333333;cursor:pointer;}
-->
</style>
這樣也能實現你要的效果,不過ie6好像不支持。如果用<a>的話會比較復雜

與網頁設計中什麼是導航欄相關的知識