分步骤实现操作
2016-06-20 19:31
323 查看
最近想实现如图界面,百度半天没有得到结果于是自己写了一个
html代码如下
<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>流程</title> <script type="text/javascript" src="jquery-1.8.3.min.js" ></script> <style type="text/css"> *{ margin:0px; padding:0px;} .you{ display:inline; height:200px; width:300px; background-color:#00A5A5; float:left; } .wu{ display:inline; height:200px; width:300px; float:left; } .zhan{ display:inline; height:200px; width:200px; background-color:#fff; float:left; } .zheng{ display:inline; height:0px; width:0px; border:100px solid #000; border-color:transparent transparent transparent #00A5A5; border-style:solid solid solid dashed; line-height:0px; float:left; } .fan{ display:inline; height:0px; width:0px; border:100px solid #000; border-color:#00A5A5 #00A5A5 #00A5A5 transparent; border-style:solid solid solid dashed; line-height:0px; float:left; } .zhong{ position:relative; top:50%; left:30%; } </style> </head> <body> <div> <div id="one" class="you"> <p class="zhong">查询教学成果</p> </div> <div id="two" class="zheng"></div> <div id="three" class="wu"><p class="zhong">登记教学成果</p></div> <div id="four" class="zhan"></div> <div id="five" class="wu"><p class="zhong">确认提交</p></div> </div> <div id="first" style="clear:left; display:block;"> <input type="button" id="next" value="下一步" onclick="firstNext()"></input> </div> <script type="text/javascript"> function firstNext(){ $("#one").css("background-color","#fff"); $("#two").removeClass("zheng"); $("#two").addClass("fan"); $("#three").css("background-color","#00A5A5") $("#four").addClass("zheng"); $("#first").css("display", "none"); $("#second").css("display", "block"); $("#third").css("display", "none"); } </script> <div id="second" style="clear:left; display:none;"> <input type="button" id="previous" value="上一步" onclick="secondPrevious()"></input> <input type="button" id="next" value="下一步" onclick="secondNext()"></input> </div> <script type="text/javascript"> function secondPrevious(){ $("#one").css("background-color","#00A5A5"); $("#two").removeClass("fan"); $("#two").addClass("zheng"); $("#three").css("background-color","#fff") $("#four").removeClass("zheng"); $("#first").css("display", "block"); $("#second").css("display", "none"); $("#third").css("display", "none"); } function secondNext(){ $("#two").removeClass("fan"); $("#three").css("background-color","#fff"); $("#four").removeClass("zheng"); $("#four").addClass("fan"); $("#five").css("background-color","#00A5A5"); $("#first").css("display", "none"); $("#second").css("display", "none"); $("#third").css("display", "block"); } </script> <div id="third" style="clear:left; display:none;"> <input type="button" id="previous" value="上一步" onclick="thirdPrevious()"></input> <input type="button" id="next" value="提交" onclick="thirdNext()"></input> </div> <script type="text/javascript"> function thirdPrevious(){ $("#five").css("background-color","#fff"); $("#four").removeClass("fan"); $("#four").addClass("zheng"); $("#two").removeClass("zheng"); $("#two").addClass("fan"); $("#three").css("background-color","#00A5A5") $("#four").addClass("zheng"); $("#first").css("display", "none"); $("#second").css("display", "block"); $("#third").css("display", "none"); } function thirdNext(){ } </script> </body> </html>
相关文章推荐
- 在Windows 8.1的IE 11中屏蔽双击放大功能
- HTML5调用摄像头实例
- Powershell 创建炫丽美观的Html报表
- Apple官网研究之使用Justify布局导航
- 关于前端的思考与感悟
- 又被事件冒泡坑了一把,这次要彻底弄懂浏览器的事件流
- 通过Mootools 1.2来操纵HTML DOM元素
- jQuery Html控件基本操作(日常收集整理)
- WEB标准网页布局中尽量不要使用的HTML标签
- Flash 与 html 的一些实用技巧
- html工作中表格<tbody>标签的使用技巧
- HTML 向 XHTML1.0 兼容性指导
- C#自写的一个HTML解析类(类似XElement语法)
- 没有文件大小限制并免费的PDF到HTML转换工具
- JavaScript与HTML结合的基本使用方法整理
- Ruby编写HTML脚本替换小程序的实例分享
- css实现气泡框效果(实例加图解)
- html链接与文本标签们
- html活用软字符连接符