首页 ┆ 网站地图 ┆ 在线留言 ┆ 游戏资讯 ┆ 资源下载 ┆ 端午节祝福 ┆ 迅雷在线影视
设为首页
加入收藏
联系我们
高级搜索
您当前的位置: 主页>网站制作>网页特效>CSS模拟windows菜单选项卡效果
CSS模拟windows菜单选项卡效果
来源: 发布时间:2008-05-07 发布人: 浏览: 人次   字体: [ ]  

把以下代码复制到<Head></Head>之间
<style type="text/css">
<!--
td, div, input, textarea{font-family: 'MS Shell Dlg', 宋体, Tahoma;font-size: 12px;cursor: default;}
.title{background-color: #000080;color:#fdf7d3;padding: 1;font-family:宋体;font-size:12px;}
.up{background-color: #cccccc;color:#000000;border: 2px outset #ffffff}
.down{background-color: #cccccc;border:2px inset #ffffff}
.up1{background-color: #cccccc;color: #000000;border: 1px outset #ffffff}
.down1{background-color:#cccccc;border:1px inset #ffffff}
.l           { background-color: #cccccc; height: 18px; border-left: 2px outset #ffffff;
               border-right: 2px outset #ffffff; color:#000000;
               border-top: 2px outset #ffffff; padding-top: 2;height:18}
.lc           { background-color: #cccccc; height: 18px; border-left: 2px outset #ffffff;
               border-right: 2px outset #ffffff; color:#000000;
               border-top: 2px outset #ffffff; padding-top: 2;height:20}
.l-h         { background-color: #cccccc; border-left: 2px outset #ffffff ; border-top: 2px outset #ffffff;color:#000000; }
.l-c         { background-color: #cccccc; border-top: 2px outset #ffffff }
.l-r         { background-color: #cccccc; border-right: 2px outset #ffffff; border-top: 2px outset #ffffff;color:#000000;}
.l-hc         { background-color: #cccccc; border-left: 2px outset #ffffff;color:#000000;}
.l-cc         { background-color: #cccccc;color:#000000; }
.l-rc         { background-color: #cccccc; border-right: 2px outset #ffffff;color:#000000;}
td{color:#000000;}
-->
</style>
把以下代码复制到<body></body>之间

<SCRIPT LANGUAGE="JavaScript">
<!--
function restore()
{
td1.className="l";td2.className="l";td3.className="l";td4.className="l";td5.className="l";td6.className="l";
td_1.className="l-h";td_2.className="l-c";td_3.className="l-c";td_4.className="l-c";td_5.className="l-c";td_6.className="l-c";
w1.style.display="none";w2.style.display="none";w3.style.display="none";w4.style.display="none";w5.style.display="none";w6.style.display="none";
}
function c1()
{
td1.className="lc";
td_1.className="l-hc";
w1.style.display="block";
}
function c2()
{
td2.className="lc";
td_2.className="l-cc";
w2.style.display="block";
}
function c3()
{
td3.className="lc";
td_3.className="l-cc";
w3.style.display="block";
}
function c4()
{
td4.className="lc";
td_4.className="l-cc";
w4.style.display="block";
}
function c5()
{
td5.className="lc";
td_5.className="l-cc";
w5.style.display="block";
}
function c6()
{
td6.className="lc";
td_6.className="l-cc";
w6.style.display="block";
}
//-->
</SCRIPT>
<form name="free" method="post" target="_target">
<div align="center">
  <table border="0" cellpadding="0" cellspacing="0" width="400" height="61">
    <tr>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c1();><div id="td1" class="lc">背景</div></td>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c2();><div id="td2" class="l">屏保</div></td>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c3();><div id="td3" class="l">外观</div></td>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c4();><div id="td4" class="l">Web</div></td>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c5();><div id="td5" class="l">效果</div></td>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c6();><div id="td6" class="l">设置</div></td>
      <td width="50" height="20" align="center" valign="bottom" ></td>
      <td width="50" height="20" align="center" valign="bottom"></td>
    </tr>
    <tr  style="">
      <td width="50" height="1" align="center" class="l-hc" id="td_1" > </td>
      <td width="50" height="1" align="center" class="l-c" id="td_2"> </td>
      <td width="50" height="1" align="center" class="l-c" id="td_3"> </td>
      <td width="50" height="1" align="center" class="l-c" id="td_4"> </td>
      <td width="50" height="1" align="center" class="l-c" id="td_5"> </td>
      <td width="50" height="1" align="center" class="l-c" id="td_6"> </td>
      <td width="50" height="1" align="center" class="l-c" id="td_"> </td>
      <td width="50" height="1" align="center" class="l-r" id="td_"> </td>
    </tr>
    <tr>
      <td width="398" height="360" class="up" colspan="8" style="border-top-style: solid; border-top-width: 0; padding: 5">
        <p align="center">
        <div align="center">
          <table border="0" cellpadding="0" cellspacing="0" width="100%" height="325">
            <tr>
              <td width="100%" height="280">
         <div align="center">
              <center>
<div style="display:" id=w1><h1>1</h1></div>
<div style="display:none" id=w2><h1>2</h1></div>
<div style="display:none" id=w3><h1>3</h1></div>
<div style="display:none" id=w4><h1>4</h1></div>
<div style="display:none" id=w5><h1>5</h1></div>
<div style="display:none" id=w6><h1>6</h1></div>
              </center>
             </div>
             </td>
            </tr>
          </table>
        </div>
      </td>
    </tr>
  </center>
    <tr>
      <td width="398" height="37" colspan="8" style="border-top-style: solid; border-top-width: 0; padding: 5">
        <p align="right"><input type="button" value="确定" name="_ok" style="width: 60;height:22" class=up>
        <input type="button" value="取消" name="_cancel" style="width: 60;height:22" class=up onclick="window.close();">
        <input type="button" value="应用(A)" name="_apply" style="width: 60;height:22" disabled class=up>
      </td>
    </tr>
  </table>
</div>
</form>


相 关 文 章   发布商链接
·解决长串英文字母将表格伸的很长,不...
·CSS实现多种多彩文字链接代码效果
·CSS样式实现文字分散对齐的方法
·利用CSS样式控制打印页面显示效果
·当左右内容高度不定时,中间分割线的...
·按页自动滚动图片或文字的特效代码
·网页开发特效之input控件高度固定,...
·网页开发特效之textarea控件宽度固定...
·图解CSS解决图片下面有空隙的问题
·实例讲解利用css滤镜实现背景图片自...
 §最新评论:(评论内容只代表网友观点,与本站立场无关!)
网名: 验证码:  【所有评论】【↑返回顶部
评 分: 12 345
评论内容:(不能超过500字,请自觉遵守互联网相关政策法规。[按 Ctrl+Enter 可直接提交]
注意:请勿在本站发布政治话题、色情及违反法律的内容。
IT知道网 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。
推 荐 文 章
·鼠标移到链接出现漂亮的对话...
·当左右内容高度不定时,中间...
·利用CSS样式控制打印页面显示
·CSS样式实现文字分散对齐的方
·CSS实现多种多彩文字链接代码
·解决长串英文字母将表格伸的...
·样式表固定table表头和列代码
·DIV+CSS两个简单的导航效果,...
·Css样式表实现文字的渐变效果
·动态添加表单两法
·无刷新更换页面样式例子供大...
·网页CSS样式表学习技巧小记,
·淘宝在线状态和qq在线状态的...
·仿windows关机对话框的提示框
·网页表格制作之圆圈型表格的...
热 门 文 章
·淘宝在线状态和qq在线状态的...
·图片左右滚动代码,鼠标放上去...
·css固定定位实现悬浮效果
·样式表固定table表头和列代码
·js实现的文字无缝向上滚动的...
·js实现复制内容到剪贴板,可...
·CSS样式实现文字分散对齐的方...
·教您实现Div的动态伸缩效果 ...
·通过CSS来动态改变界面样式实...
·实例解决Div被Select挡住问题...
·实例讲解利用css滤镜实现背景...
·DIV+CSS两个简单的导航效果,...
·仿windows关机对话框的提示框...
·网页开发特效之input控件高度...
·一段无图片纯CSS实现圆角的代...
网站首页 - 关于本站 - 加入收藏 - 网站地图 - 友情连接 - 在线留言 - 联系我们 - 返回顶部
Copyright © 2007 IT知道网.[冀ICP备07026896号]. All Rights Reserved .