这个页面怎么做啊,若是提供些代码最好了,非常感谢_html/css_WEB-ITnose

php中文网
发布: 2016-06-24 12:11:36
原创
1164人浏览过

图片插入不显示,5555
打开这个页面可以看图片http://img.my.csdn.net/uploads/201205/24/1337851311_6863.jpg

我自己用tab怎么用也弄不出效果来,希望点击的时候切换,鼠标滑过不切换的~

谢谢啦

代码小浣熊
代码小浣熊

代码小浣熊是基于商汤大语言模型的软件智能研发助手,覆盖软件需求分析、架构设计、代码编写、软件测试等环节

代码小浣熊 51
查看详情 代码小浣熊

回复讨论(解决方案)

参考下 jquery的

<!DOCTYPE html><html>	<head>		<title>Test</title>		<meta http-equiv="Content-Type" content="text/html;charset=gb2312" />		<link rel="stylesheet" href="http://yui.yahooapis.com/2.9.0/build/reset/reset-min.css" />				<script src="http://code.jquery.com/jquery-latest.js"></script>		<style type="text/css"><!--			.wrapper {				margin:80px auto;				width:400px; height:300px;				border:1px solid #aaa;			}			.head {				height:30px;				background:#ddd;				border-bottom:1px solid #aaa;				line-height:30px; text-align:center;				font-size:14px; font-weight:bold;			}			.head li {				float:left;				width:100px;				}			.head li.cur {				position:relative;				top:0; _top:1px; left:1px;				background:#fff;				border:1px solid #aaa;				border-bottom:none;				overflow:hidden;			}			.head li a {				display:block;				width:100px;			}			.con {				clear:both;				padding:10px;			}			.con li {				display:none;			}			.con .db { display:block; }			a {				outline:none;			}		--></style>	</head>	<body>		<div class="wrapper">			<ul class="head">				<li class="cur"><a href="#" hidefocus="hidefocus">Asp.net</a></li>				<li><a href="#" hidefocus="hidefocus">PHP</a></li>				<li><a href="#" hidefocus="hidefocus">mySql</a></li>			</ul>			<ul class="con">				<li class="db">1</li>				<li>2</li>				<li>3</li>			</ul>		</div>		<script>			$('.head li').click(function(){				$(this).addClass('cur').siblings().removeClass('cur');				$('.con li:eq('+$(this).index()+')').show().siblings().hide();				return false			})		</script>	</body></html>
登录后复制

参考下 jquery的

HTML code

nbsp;html>

    


        Test
        
         非常感谢哈,正是我想要的~~
HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号