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代码(jquery.showup.js):/** * @Creator: Nelson Kuang/Fast Mover * @showup 翻页插件;实现原理,用margin-top来控制页面容器位置来实现上下翻页 * @License:The MIT License (MIT) * @...
分类:
Web程序 时间:
2015-03-10 23:04:39
阅读次数:
193
html页 一个帐号,玩转租车软件 一个很好的租车软件 忘记密码 注册帐号 版权所有,翻录必究 css页/* CSS Document */*{margin:0;padding:0} img{border:0;} ...
分类:
移动开发 时间:
2015-03-10 22:49:43
阅读次数:
172
CSS中, Box Model叫盒子模型(或框模型),Box Model规定了元素框处理元素内容(element content)、内边距(padding)、边框(border) 和 外边距(margin) 的方式。在HTML文档中,每个元素(element)都有...
分类:
Web程序 时间:
2015-03-10 17:34:05
阅读次数:
211
stackoverflow上发现的一张图:帖子地址:http://stackoverflow.com/questions/4619899/difference-between-a-views-padding-and-margin
分类:
移动开发 时间:
2015-03-10 13:40:09
阅读次数:
132
html 代码: * css 代码:body{ font:14px; font-family:Arial, Helvetica, sans-serif;}.divWrapper{ width:390px; height:39px; margin:0 auto; margin-top:20px...
分类:
其他好文 时间:
2015-03-10 13:31:21
阅读次数:
114
1.问题出现的场景:
需要实现上面的布局,三张图横向排列,左图靠左,右图靠右,中间图居于中间,且图与图之间有固定间隔,起初通过如下方式实现(为了说明方便,直接通过内联样式表现):
margin-left:34%"> src=""/>
right">
该实现方式,通过float来控制左右两侧图靠两边停放,中间图通过计算三张图总宽96%,剩余4%,这4%需要分为两...
分类:
其他好文 时间:
2015-03-10 12:10:05
阅读次数:
134
.box{border:1px solid red;width:600px;height: 300px;margin:30px auto;position: relative;}
.box div{position: absolute;top:0;width:10px;height:10px;background:blueviolet;}
.l1{left:20...
分类:
其他好文 时间:
2015-03-10 10:33:23
阅读次数:
114
利用position:fixed属性新建一个全屏的层,将背景图片置于这个层中,这样就不会随着鼠标滚轮的滚动而改变背景图片的大小。
主要css:
.image_bg{position:fixed;left:0;top:0;width:100%;height:100%;z-index:-1}
.image_bg img{position:absolute;left:0;top:0;margin:0 auto;
width:100%;height:100%;z-index:-1}...
分类:
其他好文 时间:
2015-03-09 16:23:00
阅读次数:
174
方法一:HTML:页头区域页面内容页脚CSS:html,body{margin:0;padding:0;height:100%;}#container{min-height:100%;height:auto !important;height:100%;position:relative;}#hea...
分类:
其他好文 时间:
2015-03-09 14:06:19
阅读次数:
147