jquery.placeholder.js 让ie下实现placeholder的效果插件

jquery.placeholder.js 让ie下实现placeholder的效果插件

jquery.placeholder.js 让ie下实现placeholder的效果插件

第一步引入bfwone

第二步执行插件

示例如下

<!DOCTYPE html>
<html>
<head>
   
<meta charset="UTF-8">
   
<title>BFW NEW PAGE</title>
   
<script id="bfwone" data="dep=jquery.17&err=0" type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/bfwone.js"></script>
   
<script type="text/javascript">
        bready
(function() {
            use
(["jquery.placeholder"], function() {
                $
('input, textarea').placeholder();
           
});
       
});
   
</script>
</head>
<body>
   
<center style="margin-top: 10%"><font style="font-size: 18pt; font-weight: bold;font-weight: bold; ">在ie中兼容placeholder效果插件</font></center><br><br>
   
<input type="text" id="userName" name="userName" placeholder="请输入用户名…" style="margin-bottom: 12px;"><br>
   
<input type="password" id="password" name="password" placeholder="请输入密码…" style="margin-bottom: 12px;"><br>
   
<textarea id="personalInformation" name="personalInformation" rows="3" cols="50" maxlength="200" placeholder="请输入个人信息…"></textarea>

</body>
</html>


立即下载jquery.placeholder.js查看所有js插件

网友评论0

程序员在线工具箱