<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<style>
* {margin:0;padding:0;}
.parentCls {margin:5px 60px 0;}
.js-max-input {border: solid 1px #ffd2b2;background: #fffae5;padding: 0 10px 0 10px;font-size:20px;color: #ff4400}
</style>
</head>
<body>
<h2>输入框放大镜的demo</h2>
<div style="height:50px;"></div>
<div style="margin-left:56px; margin-top:6px;">我的方向是向上,允许输入长度11位</div>
<div class="parentCls">
<input type="text" class="inputElem" autocomplete = "off" maxlength="11"/>
</div>
<div style="margin-left:56px; margin-top:6px;">我的方向是向右,允许输入长度18位</div>
<div class="parentCls">
<input type="text" class="inputElem1" autocomplete = "off" maxlength="18"/>
</div>
<div style="margin-left:56px; margin-top:6px;">我的方向是向下,允许输入长度18位</div>
<div class="parentCls">
<input type="text" class="inputElem2" autocomplete = "off" maxlength="18"/>
</div>
<script src="index.js"></script>
<script>
// 初始化
$(function(){
new TextMagnifier({
inputElem: '.inputElem',
align: 'top'
});
new TextMagnifier({
inputElem: '.inputElem1',
align: 'right',
splitType: [4,4,4,6]
});
new TextMagnifier({
inputElem: '.inputElem2',
align: 'bottom',
splitType: [6,4,4,4]
});
});
</script>
</body>
</html>
input输入放大镜的js效果
需积分: 31 65 浏览量
2015-09-15
00:57:46
上传
评论 2
收藏 3KB RAR 举报
vues
- 粉丝: 86
- 资源: 49
最新资源
- springboot2.4从实战到源码分析Demo源码工程.zip
- 第6次(链表).zip
- 中国移动2023年云化核心网IMS建设工程项目-沈阳电路调单申请.xlsx
- Winform+StackExchange.Redis开发的简单的Redis工具 仅包含读取、删除、写入功能,十分简洁
- 大部分的系统都是基于这个系统,这个系统是大部分系统的过程的网络800系列,作为FG很好的完成了功能
- 提供素材.zip
- JavaWeb程序设计SSM框架选课系统开发大作业有数据库文
- JavaWeb程序设计SSM框架选课系统开发大作业有数据库文
- aubio 是一组算法和工具,用于标记和变换音乐和声音 它扫描或监听音频信号,并尝试识别音乐事件 例如,当鼓被击打时,它能检测到
- 快速的安装系统的过程G800和FG的系统,系统地开发开发一个系统所需要的网络,很好的系统,是优化过的系统
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈