zoukankan
html css js c++ java
Jq简单的切换
<!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=utf-8" /> <title>豪情</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <style> *{margin:0;padding:0;font-size:12px;} h3{margin:20px auto;text-align:center;} input{120px;height:30px;cursor:pointer;} h1{70%;border:1px solid #ccc;background:#eee;padding:5px;cursor:pointer;} #content{70%;border:1px solid #9BDF70;background:#F0FBEB;display:none;padding:5px;} </style> <script> $(function(){ $('h1').click(function(){ $('#content').slideToggle(); return false; }); $('#content a').click(function(){ $('#content').slideUp(); return false; }); }); </script> </head> <body> <h1><a href="http://jikey.cnblogs.com">豪情</a></h1> <div id="content"> 豪情的blog是 <a href="http://jikey.cnblogs.com">http://jikey.cnblogs.com</a> 欢迎加入js学习团队:3643843 </div> </body> </html>
运行代码
也没什么技术含量,
主要是return false,阻止打开链接,也可以用 event.preventDefault();
查看全文
相关阅读:
分页插件加MVC
在ASP.NET MVC中,有使用angularjs
EF比较权威的一篇
WEBFORM中添加bootstrap套件
MVC统一设置命名空间
重新生成索引及重新组织索引
Dapper.Contrib.Extensions问题
API Test WebApiTestClient工具安装及使用
API Test Postman接口测试之高级篇2
API Test Postman接口测试之高级篇1
原文地址:https://www.cnblogs.com/jikey/p/1746029.html
最新文章
Leetcode 867. Transpose Matrix
Leetcode 908. Smallest Range I
Leetcode 122. Best Time to Buy and Sell Stock II
Leetcode 53. Maximum Subarray
leetcode 1016. Binary String With Substrings Representing 1 To N
Leetcode 1015. Smallest Integer Divisible by K
c#开发命名规范
简单的log
FTB操作
EPPlus(SQL导成Excel)
热门文章
内存映射
pdf生成
百度地图API 根据地址查询经纬度
几种API接口
pdf生成(itextSharp)
关闭进程
泛型与datatable 转化
datatable 转list
B-JUI使用方法
ASP.NET MVC Bootstrap极速开发框架
Copyright © 2011-2022 走看看