zoukankan
html css js c++ java
Jqonfocus,onblur
<!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>Document</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <style> .b{border:1px solid #fc0;background:#FFFFF7;} input,textarea{border:1px solid #92B0DD;background:#FAFCFD;} label{float:left;90px;padding-right:5px;text-align:right;overflow:hidden;} </style> <script> // 连锁店显示 $(function(){ $('input[type="text"],input[type="password"], textarea').focus(function(){ $(this).addClass('b'); }).blur(function(){ $(this).removeClass('b'); }); }); </script> </head> <body> <label for="username">name: </label><input type="text" name="" id="username" /><br /> <label for="password">password: </label><input type="password" name="" id="password" /><br /> <label for="textarea">textarea:</label> <textarea name="" id="textarea" cols="30" rows="10">
运行代码
查看全文
相关阅读:
python 练习洗牌
python 生成二维码
转载 HTTP协议
分别使用python和java练习冒泡排序
python-字符串
[转]三层架构与MVC之间的区别
[转]JAVA异常
[转]JavaEE开发基础
[转]JAVA对象容器
数据库操作实例
原文地址:https://www.cnblogs.com/jikey/p/1737108.html
最新文章
网易云音乐 歌词制作软件 BesLyric (最新版本下载)
C++ —— 时间与日期
linux —— shell 编程(文本处理)
linux —— shell 编程(编程语法)
linux —— 搭建网页项目笔记
【汇编】01_数值运算
Linux中ext2文件系统的结构
Linux中vim编辑器的总结
Linux中vim编辑器常用操作技巧
Linux系统的vim编辑器的配置文件的初步说明
热门文章
Linux Bash 命令行快捷键小结
rsync学习笔记
Linux系统配置双网卡绑定bond0
Linux网络管理命令ifdown/ifup与ifconfig/ip中的down/up命令的对比
os.popen('python hello_out.py')中Python程序执行时默认的当前路径为MS-DOS CMD的默认路径
(转)oracle体系结构
更新github上代码
本地代码上传到github
tesseract-ocr 图片文字识别
python zip()函数用法
Copyright © 2011-2022 走看看