网站导航菜单设计案例

简介: (1)、为了导航菜单布局的美观,首先定义一个css文件,如index.css.menu:link {     font-size: 11pt;     font-weight: bold...

(1)、为了导航菜单布局的美观,首先定义一个css文件,如index.css

.menu:link {

     font-size: 11pt;

     font-weight: bold;

     text-decoration: none;

     color: #294E83;

     filter:DropShadow(Color=#CEDDF2, OffX=1, OffY=1, Positive=2);

 

}

.menu:visited {

     font-size: 11pt;

     font-weight: bold;

     text-decoration: none;

     color: #294E83;

     filter:DropShadow(Color=#CEDDF2, OffX=1, OffY=1, Positive=2);

    

}

.menu:hover {

     font-size: 11pt;

     font-weight: bold;

     text-decoration: none;

     color: #666867;

     filter:DropShadow(Color=#CEDDF2, OffX=1, OffY=1, Positive=2);

    

}

(2)、以下是导航菜单页面的.aspx页面的部分代码:

<div>

        <table cellpadding="0" cellspacing="0" border="0" align="center" width="950">

            <tr>

                <td style="background:url(Images/Menu.jpg) no-repeat" valign="middle" align="center" colspan="4">

                    <table height="21" cellpadding="0" cellspacing="0" width="90%" border="0">

                        <tr>

                            <td valign="bottom" align="center" height="21" nowrap> 

                                <script language="javascript">

                                    var today = new Date();

                                    var day,date;

                                    if(today.getDay()==0) day = '星期日';

                                    else if(today.getDay()==1) day = '星期一';

                                    else if(today.getDay()==2) day = '星期二';

                                    else if(today.getDay()==3) day = '星期三';

                                    else if(today.getDay()==4) day = '星期四';

                                    else if(today.getDay()==5) day = '星期五';

                                    else if(today.getDay()==6) day = '星期六';

                                    date = '今天是:'+today.getYear()+''+(today.getMonth()+1)+''+today.getDate()+''+' '+day;

                                    document.write(date);

                                </script>

                            </td>

                            <td align="center" valign="bottom" nowrap height="21px" width="6px" background="Images/dhdx.gif"></td>

                            <td align="center" valign="bottom" nowrap height="21px"><a href="#" class="menu">首页</a></td>

                            <td align="center" valign="bottom" nowrap height="21px" width="6px" background="Images/dhdx.gif"></td>

                            <td align="center" valign="bottom" nowrap height="21px"><a href="#" class="menu">系统管理</a></td>

                            <td align="center" valign="bottom" nowrap height="21px" width="6px" background="Images/dhdx.gif"></td>

                            <td align="center" valign="bottom" nowrap height="21px"><a href="#" class="menu">工程管理</a></td>

                            <td align="center" valign="bottom" nowrap height="21px" width="6px" background="Images/dhdx.gif"></td>

                            <td align="center" valign="bottom" nowrap height="21px"><a href="#" class="menu">工程监测</a></td>

                            <td align="center" valign="bottom" nowrap height="21px" width="6px" background="Images/dhdx.gif"></td>

                            <td align="center" valign="bottom" nowrap height="21px"><a href="#" class="menu">统计查询</a></td>

                            <td align="center" valign="bottom" nowrap height="21px" width="6px" background="Images/dhdx.gif"></td>

                            <td align="center" valign="bottom" nowrap height="21px"><a href="#" class="menu">监测分析</a></td>

                            <td align="center" valign="bottom" nowrap height="21px" width="6px" background="Images/dhdx.gif"></td>

                            <td align="center" valign="bottom" nowrap height="21px"><a href="#" class="menu">关于</a></td>

                        </tr>

                    </table>

                </td>

            </tr>

        </table>

</div>

 

相关文章
|
4月前
为您的网站添加通用网站底部美化代码
为您的网站添加通用网站底部美化代码
46 1
为您的网站添加通用网站底部美化代码
html+css实战179-快捷导航布局-内容
html+css实战179-快捷导航布局-内容
89 0
html+css实战179-快捷导航布局-内容
|
Web App开发 JavaScript 前端开发
分享25个优秀的网站底部设计案例
  相对于网站头部来说,关注网站底部设计的人很少。我们平常也能碰到有些网站的底部设计得很漂亮,给网站的呈现来一个完美的结尾。这篇文章收集了25个优秀的网站底部设计案例,一起欣赏。 me & oli La Bubbly Poogan’s Porch GiftRocket Li...
1418 0
|
前端开发
JSP+Servlet培训班作业管理系统[15]–后台管理页面右侧内容区域美化
本文目录 1. 本章任务 2. 内容区域添加当前页面名称显示 3. 内容区域固定高度 4. 添加底部操作栏 5. 美化表格部分 6. 其他页面改动 7. 效果
156 0
JSP+Servlet培训班作业管理系统[15]–后台管理页面右侧内容区域美化
|
存储 人机交互 UED
网站导航设计方法总结
网站导航设计攻略
913 0
|
UED
浅析网页界面设计——首页设计
杨科宇曾发表过一篇文章《浅析网页界面设计——首页设计》,文中为我们分享了如何进行首页的界面设计。现转载于此,供大家借鉴学习。全文如下: 首页设计,需开宗明义突出主题 开宗明义,无论是对于一篇文章、一场会议或一部专题片,还是对于一个网站来说,都是必不可少的。
1384 0
|
Web App开发
网站导航设计指南
以下内容由Mockplus团队翻译整理,仅供学习交流,Mockplus是更快更简单的原型设计工具 “如果人们在浏览网站时遇到困难,他们就会犹豫是否要回到该网站。
1023 0