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">
运行代码
查看全文
相关阅读:
sql 在日期范围内搜索
js 处理日期时间字符串显示的方法
matlab练习程序(并行计算)
C++程序运行时间
matlab练习程序(KNN,K最邻近分类法)
多媒体指令(像素处理)
ubuntu启动/重启/停止apache
matlab练习程序(matlab调用c/c++)
我的vim设置
matlab练习程序(c/c++调用matlab<engine>)
原文地址:https://www.cnblogs.com/jikey/p/1737108.html
最新文章
CSS 控制打印样式
CSS属性:markeroffset
js中prototype用法
无法连接到 visual studio 开发服务器
C#之结构
维基百科关于 COBOL语言的.
枚举类型(C# 编程指南)(摘抄msdn.备忘)
javascript常用函数集(常规函数、数组函数、日期函数、数学函数、字符串函数)
ASP.NET MVC 4 Beta 发布
HTML精确定位:scrollLeft,scrollWidth,clientWidth,offsetWidth之完全详解
热门文章
MVVM是ModelViewViewModel的简写
结构(C# ) (摘抄msdn.备忘.)
jquery css位置offset()
JavaScript变量与作用域
C# "with" 关键字
C# 语言中 struct 的陷阱
想目录形式的列表,快捷键:Tab:切换到下级目录.Shift+tab:切换到上目录.在各种文本编辑器,word等中均可用.
C# struct的陷阱:无法修改“...”的返回值,因为它不是变量
Entity Framework 4.3 中的新特性
通配符 与 正则表达式
Copyright © 2011-2022 走看看