![](/static/imghw/top_right.png)
![](/static/imghw/top_right.png)
![](/static/imghw/top_right.png)
jQuery imitation mobile phone address book select delete contact code
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
// 判断是否为pc还是移动端。true为移动端
function detectmob() {
if( navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/iPad/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| navigator.userAgent.match(/Windows Phone/i)
){
return true;
}
else {
return false;
}
}
if(!detectmob()) {
$("#selectPage").removeClass('weui-popup__container');
$("#selectPage .weui-popup__modal").css({
"-webkit-transform": "none",
"-moz-transform": "none",
"-ms-transform": "none",
"transform": "none"
})
$("#seachPage").css({
"z-index": 120
})
$("#selectPage .weui-popup__overlay").addClass('hide');
$(".sel-btn,.back-btn").addClass('hide');
$(".gray-bg").css({
"position":"relative",
"width": 740,
"height": 600,
"margin": "auto"
})
$("#indexPage").css({
"width": 370
})
$("#selectPage").css({
"width": 370,
"position": "absolute",
"height": "100%",
"top":0,
"right":0
})
}
</script>
<script src="js/icheck.min.js"></script>
<script src="js/jquery-weui.js"></script>
<script src="js/doT.min.js"></script>
<script src="js/mailList2.js"></script>,还支持单选多选全选、选择组等效果。
Jquery是网页编程所需的重要技术之一。Jquery是继prototype之后又一个优秀的Javascrīpt框架,它是轻量级的js库,它兼容CSS3,还兼容各种浏览器。jQuery使用户能更方便地处理HTML documents、events、实现动画效果,并且方便地为网站提供AJAX交互。jQuery还有一个比较大的优势是,它的文档说明很全,而且各种应用也说得很详细,同时还有许多成熟的插件可供选择。jQuery能够使用户的html页保持代码和html内容分离,也就是说,不用再在html里面插入一堆js来调用命令了,只需定义id即可。
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
24 Jun 2016
CSS3 JQUERY page scrolling effects code
24 Jun 2016
58 jQuery simulated CSS3 transition page switching effects
![jquery waterfall flow LightBox picture box special effects](http://static.oschina.net/uploads/code/201607/05154721_nehQ.gif)
06 Jul 2016
jquery waterfall flow LightBox picture box special effects
![How to Maintain jQuery Mouseover Effects in ASP.NET UpdatePanels?](https://img.php.cn/upload/article/001/246/273/173318683092401.jpg)
03 Dec 2024
jQuery $(document).ready and UpdatePanels: A Refined LookWhen utilizing jQuery to apply mouseover effects to elements within an UpdatePanel, the...
![How Can I Dynamically Modify Text on Mouseover using jQuery?](https://img.php.cn/upload/article/001/246/273/173145498458794.jpg)
13 Nov 2024
jQuery: Dynamically Modifying Text with Mouseover EventsWhen interacting with elements on a web page, adding subtle effects can enhance user...
![How to Simulate Hover Effects on Touchscreens Using Long Press?](https://img.php.cn/upload/article/001/246/273/172959482175202.jpg)
22 Oct 2024
To replicate hover effects on touch-enabled devices, this article proposes a technique using a combination of CSS and JavaScript. It demonstrates how to add hover effects to elements on touchstart and touchend events using jQuery, and how to style th
24 Jun 2016
CSS3 input box shadow effects and other shadow effects
![Can\'t Fade Background Image in jQuery? Unlock the Solution](https://img.php.cn/upload/article/001/246/273/172967808393176.jpg)
23 Oct 2024
jQuery doesn't natively fade background images. This article presents a workaround using hidden tags with absolute positioning and negative z-index to mimic background behavior, allowing for fading effects on background images.
24 Jun 2016
61 web page special effects that are very fashionable and have great visual effects
![See all articles](/static/imghw/down_right.png)
![](/static/imghw/taglogo.png)
Hot Tools
![jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects](https://img.php.cn/upload/jscode/000/000/001/5c64d3e6d92b2641.jpg)
jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects
A very popular jQuery Valentine's Day confession fireworks animation special effect on Douyin, suitable for programmers and technical geeks to express their love to the girl they love. No matter you choose to be willing or not, you have to agree in the end.
![layui responsive animated login interface template](https://img.php.cn/upload/jscode/000/000/001/5a93a913de3a7571.png)
layui responsive animated login interface template
layui responsive animated login interface template
![520 Valentine's Day confession web animation special effects](https://img.php.cn/upload/jscode/000/287/557/620611f90d724550.jpg)
520 Valentine's Day confession web animation special effects
jQuery Valentine's Day Confession Animation, 520 Confession Background Animation
![Cool system login page](https://img.php.cn/upload/jscode/000/120/096/5e09903f2f0c4401.jpg)
Cool system login page
Cool system login page
![HTML5 tape music player-CASSETTE PLAYER](https://img.php.cn/upload/jscode/000/120/096/5e200ad65973d549.jpg)
HTML5 tape music player-CASSETTE PLAYER
HTML5 tape music player-CASSETTE PLAYER
![](/static/imghw/taglogo.png)