用table实现收缩栏功能

本文详细介绍了使用HTML和CSS进行网页布局的方法,包括如何设置页面结构、样式表链接及导航栏的设计等。通过具体实例展示了不同元素的定位技巧以及交互效果实现。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<!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" />
<title>无标题文档</title>
<link href="css/top.css" _fcksavedurl=""css/top.css"" rel="stylesheet" />
<link href="css/Tree.css" rel="stylesheet" />
<style type="text/css">
<!--
#row {
 position:absolute;
 left:178px;
 top:390px;
 width:10px;
 height:8px;
 z-index:1;
}
-->
</style>
<STYLE type=text/css>.navPoint {
 FONT-SIZE: 6pt; CURSOR: hand; COLOR: black; FONT-FAMILY: Webdings
}
</STYLE>
<SCRIPT language=javascript>
function switchSysBarLeft()
{
 
 if (switchPointLeft.title=="关闭菜单"){
  switchPointLeft.title="打开菜单"
  document.all("MenuLeft").style.display="none"
  
 }
 else{
  switchPointLeft.title="关闭菜单"
  document.all("MenuLeft").style.display=""
 }
}


function openMenu()
{
 return;
}

  </SCRIPT>
</head>

<body leftmargin="0" topmargin="0">

<TABLE id=Table1 cellSpacing=0 cellPadding=0 width="100%" align=center
  border=0><TBODY>
  <TR>
    <TD width=174>
      <TABLE id=Table2 height=93 cellSpacing=0 cellPadding=0 width="100%"
      border=0>
        <TBODY>
        <TR>
          <TD width=9><IMG height=93 alt=""
            src="imags/top01.gif" width=9></TD>
          <TD background=imags/top02.gif><IMG height=93
            src="imags/logo.gif" width=155></TD>
          <TD width=10><IMG height=93 alt=""
            src="imags/top03.gif" width=10></TD>
        </TR></TBODY></TABLE></TD>
    <TD width="100%">
      <TABLE id=Table3 cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=bottom width="100%" height=56>
            <TABLE id=Table4 cellSpacing=0 cellPadding=0 width="100%"
              border=0><TBODY>
              <TR>
                <TD width=12><IMG height=56 alt=""
                  src="imags/top04.gif" width=12></TD>
                <TD align=center background=imags/top05.gif><IMG
                  height=56 src="imags/MainTitle_Logo.gif" width=500></TD>
                <TD width=18><IMG height=56 alt=""
                  src="imags/top06.gif"
            width=18></TD>
              </TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD height=37>
            <TABLE id=Table5 height=37 cellSpacing=0 cellPadding=0 width="100%"
            border=0>
              <TBODY>
              <TR>
                <TD class=main_title background=imags/top07.gif><table id="BusiPortalTable" style="BORDER-COLLAPSE: collapse"
                  cellspacing="0" cellpadding="0" border="0">
                  <tbody>
                    <tr style="HEIGHT: 20px" align=center>
                      <td class="main_title" style="width: 61px"><div align="left"><a href="/jjjhtzglxt.htm" class="menu_main">&nbsp;我的首页</a></div></td>
                      <td class="menu_line" style="WIDTH: 1px">&nbsp;</td>
                      <td class="main_title">&nbsp;<a 
                        href="http://www.hao123.com" target="FrameBottom" class="menu_main">权限维护</a></td>
                      <td class="menu_line" style="WIDTH: 1px">&nbsp;</td>
                      <td class="main_title">&nbsp;<a class="menu_main" 
                        href="#">系统维护</a></td>
                      <td class="menu_line" style="WIDTH: 1px">&nbsp;</td>
                      <td class="main_title">&nbsp;<a class="menu_main" 
                        href="#">文件查询</a></td>
                      <td class="menu_line" style="WIDTH: 1px">&nbsp;</td>
                      <td class="main_title">&nbsp;<a class="menu_main"
                        href="#">投资查询</a></td>
                      <td class="main_title">&nbsp;<a class="menu_main"
                        href="#">统计分析</a></td>
                      <td class="main_title">&nbsp;<a class="menu_main"
                          href="#">帮助</a></td>
                      <td class="main_title">&nbsp;<a class="menu_main"
                         href="#">退出</a></td>
                    </tr>
                  </tbody>
                </table></TD>
                <TD width=18><IMG height=37 alt=""
                  src="imags/top08.gif"
            width=18></TD>
              </TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE id=Table7 height=35 cellSpacing=0 cellPadding=0 width="100%" align=center
border=0>
  <TBODY>
  <TR>
    <TD align=center background=imags/office_ToolBar_Bg.gif>&nbsp;</TD>
  </TR>
 </TBODY></TABLE>
<table width="100%" height="472" border="0" cellpadding="0" cellspacing="0">
  <tr >
    <td width="18%" rowspan="3" bgcolor="#E8F5FD" id="MenuLeft">&nbsp;</td>
    <td width="1%"  background="imags/Line.gif" onmouseover="openMenu()"><table width="10" height="196" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="58">&nbsp;</td>
      </tr>
      <tr>
        <TD  vAlign=middle onclick=switchSysBarLeft(); onmousemove=openmenu()  id=switchPointLeft title=关闭菜单 class="navPoint" >    <div align="center"><img src="imags/row.gif" /></div></TD>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td width="81%" rowspan="3" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
 
</table>
</body>
</html>
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值