会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
石紫云
博客园
首页
新随笔
联系
管理
订阅
2016年6月22日
jq 自动滑动轮换(向后插入小块)
摘要: // JavaScript Documentvar Marquee = { arrIdObj : {/*marqueebox : {distance:-95,//移动距离delay:3000,//延迟时间speed:1000//移动时间},minCount:2 */}, //创建对象 startMa
阅读全文
posted @ 2016-06-22 08:55 石紫云
阅读(312)
评论(0)
推荐(0)
2016年4月20日
js 本地图片未上传先预览(等比缩小图片内容大小)
摘要: //上传图片文件var uploadFileImage = { //最大图片数 maxCountImgs : 5, //图片数 countImgs : 0, //图片最大值兆 max_size : 1000, //file 控件id列表集["user_head","two_code_img","br
阅读全文
posted @ 2016-04-20 10:16 石紫云
阅读(399)
评论(0)
推荐(0)
2016年4月9日
js 置顶操作
摘要: //置顶 document.getElementById("pro-view-8").onclick = function(){document.body.scrollIntoView();} window.onscroll = function(){ if(document.body.scroll
阅读全文
posted @ 2016-04-09 12:16 石紫云
阅读(1277)
评论(0)
推荐(0)
js input输入数量控制
摘要: <div class="w-number" > <a class="w-number-btn w-number-btn-minus" pro="minus" href="javascript:void(0);">-</a> <input class="w-number-input" pro="inp
阅读全文
posted @ 2016-04-09 12:15 石紫云
阅读(1717)
评论(0)
推荐(0)
2016年4月8日
js 时间倒计时
摘要: //objElement 元素对象,strHtml 元素内的字符格式,yuTimeSpan 倒计时毫秒数,endFunc 结束处理函数function initialTimer(objElement,strHtml,yuTimeSpan,endFunc){ if(typeof initialTime
阅读全文
posted @ 2016-04-08 17:21 石紫云
阅读(344)
评论(0)
推荐(0)
2016年4月5日
html内容垂直居中
摘要: css样式: #outer{height:100px;overflow:hidden;position:relative;} #middle{position:absolute;top:50%;} #inner{position:relative;top:-50%;} #outer[id]{disp
阅读全文
posted @ 2016-04-05 15:31 石紫云
阅读(300)
评论(0)
推荐(0)
大图片随浏览器水平居中显示
摘要: css样式: <style> *{margin: 0; } .ads-detail { width: 1000px;/*height: 1000px;*/ position: relative; margin: 0 auto; } .ads-detail p{ position: absolute;
阅读全文
posted @ 2016-04-05 15:09 石紫云
阅读(427)
评论(0)
推荐(0)
2016年4月1日
img,display:inline相关间隙样式问题
摘要: img图片展示上下(有些浏览器可能左右)有间隙解决方式: 1.(display:inline或inline-block)标签元素或图片的父标签 font-size:0px; 2. 图片添加样式 vertical-align属性为“top,text-top,bottom,text-bottom” 3.
阅读全文
posted @ 2016-04-01 16:28 石紫云
阅读(625)
评论(0)
推荐(0)
js淡入淡出轮换思想(1)
摘要: html结构: <div class="slibanner" ><div class="slideContent" id="box"><ul class="slideShow" id="tklist"><li><a class="slideBlock current" target="_blank"
阅读全文
posted @ 2016-04-01 16:20 石紫云
阅读(186)
评论(0)
推荐(0)
2015年12月15日
js 禁止|阻止滚动条滚动
摘要: js javascript禁止滚动条滚动事件 0 鼠标移动这里,转动滚轮,随你而改变!
阅读全文
posted @ 2015-12-15 17:44 石紫云
阅读(4866)
评论(0)
推荐(0)
下一页
公告