JQuery实现图片轮播
*{margin: 0;padding: 0;}
#box{width:600px;height:240px;position: relative;}
#pic{width:600px;height:240px;position: relative;top:0px;left:0px;}
img{position: absolute;}/* 将三个图片层叠在一起 */
#...
分类:
Web程序 时间:
2015-03-11 12:59:39
阅读次数:
125
运动框架 js://height,left , top ,right ,opacityvar timer = null function move(obj,attr,target){ //开启定时器 timer = setInterval(fun...
分类:
Web程序 时间:
2015-03-11 12:43:21
阅读次数:
212
一、控制手机视图页面viewport高宽缩放属性width: viewport 的宽度 (范围从 200 到 10,000 ,默认为 980 像素 )height: viewport 的高度 (范围从 223 到 10,000 )initial-scale: 初始的缩放比例 (范围从>0到 10 )...
分类:
移动开发 时间:
2015-03-11 12:33:47
阅读次数:
142
border-radius 不兼容ie7、ie8
.savebuution0 { background: url("../image/none.jpg") repeat scroll 0 0 rgba(0, 0, 0, 0); border:medium none; border-radius: 8px; color: #fff; font-weight: bold; height: 45px;...
分类:
Web程序 时间:
2015-03-11 10:52:13
阅读次数:
385
C# 获取屏幕的大小WinForm:intiActulaWidth =Screen.PrimaryScreen.Bounds.Width;intiActulaHeight =Screen.PrimaryScreen.Bounds.Height ;WPF下的:doubledWidth = System...
模仿jquery,使用简单,自动添加浏览器前缀1 var keyframes = new SHBKerframes();2 keyframes.define([{3 name:'myAnimate',4 0%:{width:100px;height:100px;transform:s...
分类:
其他好文 时间:
2015-03-11 10:31:13
阅读次数:
176
1.文字本身的大小不兼容。同样是font-size:14px的宋体文字,在不同浏览器下占的空间是不一样的,ie下实际占高16px,下留白3px,ff下实际占高17px,上留白1px,下留白3px。解决方案:给文字设定line-height。确保所有文字都有默认的line-height值。2.ff下容...
分类:
Web程序 时间:
2015-03-11 09:17:51
阅读次数:
572
CSS兼容常用技巧 请尽量用xhtml格式写代码,而且DOCTYPE影响 CSS 处理,作为W3C标准,一定要加DOCTYPE声明。 1.div的垂直居中问题 vertical-align:middle; 将行距增加到和整个DIV一样高 line-height:200px; 然后插入文字,就垂...
分类:
Web程序 时间:
2015-03-11 09:16:22
阅读次数:
144
在css中有个叫line-height的样式,该样式是设置行高用的,在查阅一些文档后发现对于字体而言存在着base-line的概念,而且都没具体讲清楚它的由来等,然后我捉摸着浏览器的排版规则应该是基于早期的文字排印来的,然后整理了下该方面的内容,供后面的学习参考,首先来看下以下这..
分类:
其他好文 时间:
2015-03-10 19:40:42
阅读次数:
151
该插件主要将alert和confirm这两个默认的弹窗进行了美化,详见代码;(function ($) { //默认参数 var PARAMS; var DEFAULTPARAMS = { Title: "111", Content: "", Width: 400, Height:...
分类:
Web程序 时间:
2015-03-10 16:57:52
阅读次数:
153