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">
运行代码
查看全文
相关阅读:
Spring 中的邮件任务
Spring 定时任务
java中同步交互 与 异步交互
Springboot 版本包冲突
Derby 配置环境变量
Springboot中的Web服务Tomcat改为Jetty
二叉树中和为某一值的路径
0-Java中this和super的用法总结
树9:二叉搜索树的后序遍历
位运算-输入一个整数,输出该数二进制表示中1的个数。其中负数用补码表示。
原文地址:https://www.cnblogs.com/jikey/p/1737108.html
最新文章
TortoiseGit部署和网络异常处理
Shaderlab-chapter2 渲染流水线
luajit-官方性能优化指南和注解(转
luaJIT-记录
算法-log2求值(整型)
lua-设计与实现-4表
lua-快捷开发
lua-设计与实现- 指令格式汇总解读
C-语言特性
定时器基础
热门文章
style获取样式注意
arguments实参集合
图片笔记-js多态,函数传参
js闲记
css闲记
js属性操作之 “.”点运算符合“[ ]”中括号运算符的关系
spring security 配置
SpringSecurity 与 Thymeleaf 整块无法响应 (新)
Spring Security 学习前言
SpringSecurity4 与 Thymeleaf 整合模块无法显应
Copyright © 2011-2022 走看看