jquery li练习
2024-08-28 12:23:35
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<script src="jquery-1.7.1.min.js"></script>
<script>
$(function () {
$('li').hover(function () {
$(this).css({'color':'red','cursor':'pointer'});
}, function () {
$(this).css('color', 'black');
}).click(function () {
$(this).appendTo('#ul2');
});
});
</script>
</head>
<body>
<ul id="ul1">
<li>北京</li>
<li>上海</li>
<li>广州</li>
<li>深圳</li>
</ul>
<ul id="ul2">
</ul>
</body>
</html>
最新文章
- Tcp/ip 报文解析
- Linux字符设备驱动框架
- Hyper-V上运行的Linux虚拟机验证是否安装了集成服务
- 将Centos的yum源更换为国内的阿里云源
- 嵌入式linux开发环境构建
- (转) RSA算法原理(一)
- jQuery Ajax 操作函数
- [xcode]Xcode查找函数(方法)调用及被调用
- jq手风琴---点击时列表的左边距逐渐减小
- Desert King
- Seeding(dfs)
- 老李分享:DBA
- whonix官网部分翻译
- ionic cordova build android error: commamd failed with exit code eacces
- spring的定时器
- java 变量 final 小结
- 使用Holer外网SSH访问内网(局域网)Linux系统
- 「WC 2019」数树
- C语言 &#183; 字符串的展开
- Lost connection to MySQL server during query ([Errno 104] Connection reset by peer)
热门文章
- 摘录-MYSQL5.7版本sql_mode=only_full_group_by问题
- Android 用MediaRecorder录制视频太短崩的问题
- Android 监听软键盘按键的三种方式
- Kinect小小玩偶游戏----小小潜水员
- [tmux] Organize your terminal using tmux panes
- 2015年创业中遇到的技术问题:1-10(乱码-SpringMVC-jquery-JSON等)
- 小强的HTML5移动开发之路(27)—— JavaScript回顾2
- (翻译)2016美国数学建模MCM E题(环境)翻译:我们朝向一个干旱的星球?
- 【Python 安装】安装第三方库时 PermissionError: [WinError 5] Access is denied
- 怎么样Windows7在配置ASPserverIIS