JQ
欲与晨风共行
这个作者很懒,什么都没留下…
展开
-
JQ实现将div的滚动条滚动到指定子元素所在的位置
function scrollLocation(fater, scrollTo) { // fater.scrollTop( // scrollTo.offset().top - fater.offset().top + fater.scrollTop() // ); // Or you can animate the scrolling: fater.animate({ scrollTop: scrollTo.offset().top -.原创 2021-11-17 10:48:54 · 819 阅读 · 0 评论 -
jq、js 实现可手动输入搜索input下拉框---手机区号
/* 手机区号 */ .id_areaCode { position: relative; height: 100%;}.areaCode_ul { display: none; position: absolute; width: 4.80rem; height: 4.00rem; z-index: 88; /* margin-top: 30rem; */ /* padding: 0 20rem; */...原创 2021-10-15 10:32:48 · 914 阅读 · 0 评论 -
750px h5设计稿 适配rem
// public/js/rem.jsfunction remSize() { let screenWidth = window.document.documentElement.clientWidth || window.innerWidth; if (screenWidth > 750) { screenWidth = 750; } if (screenWidth < 320) { screenWidth = 320原创 2021-09-17 16:31:32 · 464 阅读 · 0 评论 -
JQ一个点击事件控制另外两个radio框切换选中问题
JQ一个点击事件控制另外两个radio框切换选中问题 <div id= "tab"> <input name="cooperation" type="radio" value="1" checked/>自营 <input name="cooperation" type="radio" value="2" />第三方 </div> //这原创 2020-07-21 10:43:21 · 700 阅读 · 0 评论