javascript与css模拟excel的选项卡 如题,有高手能提供相似的代码吗?高仿不要求一样,颜色与样式差不多就可以。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!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> <title>Untitled Page</title> <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $("div").eq(0).css("display", "block"); $("li").click(function () { $("li").css("backgroundColor", "#0099FF"); $(this).css("backgroundColor", "green"); $("div").css("display", "none"); $("div").eq($("li").index(this)).css("display", "block"); }); }); </script> <style type="text/css"> *{ margin:0px; padding:0px; } ul{ height:22px; width:500px; margin:0px; } ul li{ height:20px; line-height:20px; width:100px; border:1px solid blue; cursor:pointer; margin:0px 1px 0px 1px; list-style-type:none; float:left; background-color:#0099FF;} div{ width:500px; height:300px; background-color:#CCCCCC; position:absolute; top:23px; left:0px; display:none; font-size:20px; } </style></head><body> <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul> <div>1</div> <div>2</div> <div>3</div> <div>4</div></body></html>大概意思如此,要做很像的要弄图片,估计没人会给你做,除非有现成的,叫你方法还是可以的求高手指正!! extjs如何控制pagingtoolbar中displayMsg的位置 在网页上打开模式窗口对话框,显示页面为指定的整个页面,我想只显示指定页面的一部分,可以做到吗? formValidator插件不支持带空格的文本输入验证吗?! 怎样让用户登录以后,下次登录自动显示用户名? 求一个输入日期时过滤字符的正则表达式希望高手指点。 如何验证input里面必须是字母和数字的组合? 如何自动3秒后提交 button 表单 请问如何限制打开子页面的数目。 怎样用ScriptX设置IE横向打印? 请问JAVASCRIPT如何调用COM对象? js中的疑问!高手指点一下!谢谢了! 求下面代码的解释
<!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>
<title>Untitled Page</title>
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("div").eq(0).css("display", "block");
$("li").click(function () {
$("li").css("backgroundColor", "#0099FF");
$(this).css("backgroundColor", "green");
$("div").css("display", "none");
$("div").eq($("li").index(this)).css("display", "block");
});
});
</script>
<style type="text/css">
*{ margin:0px; padding:0px; }
ul{ height:22px; width:500px; margin:0px; }
ul li{ height:20px; line-height:20px; width:100px; border:1px solid blue; cursor:pointer;
margin:0px 1px 0px 1px; list-style-type:none; float:left; background-color:#0099FF;}
div{ width:500px; height:300px; background-color:#CCCCCC; position:absolute; top:23px; left:0px; display:none; font-size:20px; }
</style>
</head>
<body>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
</body>
</html>大概意思如此,要做很像的要弄图片,估计没人会给你做,除非有现成的,叫你方法还是可以的
求高手指正!!