码迷,mamicode.com
首页 >  
搜索关键字:top    ( 21129个结果
边距叠加
css排版时出现:里面的div设置margin-top值时外面div会向下移动相应距离的解决方法 先看一简单实例:这是一个段落然后设置样式 #box { margin:10px; background-color: #999; } p {background-color: #990; marg...
分类:其他好文   时间:2015-07-14 15:16:20    阅读次数:96
css3倒影
使用CSS3制作倒影img { -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(50%, transparent) , to(r....
分类:Web程序   时间:2015-07-14 15:09:54    阅读次数:115
jquery砸金蛋 高仿阿里旅游砸金蛋
function zadan(obj) { ? ? $(obj).children("span").hide(); ? ? eggClick($(obj)); }; function donghua() { ? ? $("#hammer").animate({ ? ? ? ? top : "150px", ? ? ? ? left : "420px" ? ? ...
分类:Web程序   时间:2015-07-14 13:52:32    阅读次数:229
zeptoJS:如何像jQuery一样,让滚动变得优雅?
利用jQuery的animate() 方法,我们很容易实现滚动条的平滑滚动效果:$(function() { $('#top').click( function (e) { $('html, body').animate({scrollTop: '0px'}...
分类:Web程序   时间:2015-07-14 13:25:23    阅读次数:635
【数据结构】 Queue 的简单实现
【数据结构】 Queue 的简单实现 public class XQueue { /// /// 第一个元素 /// private static XQueueItem _top; /// /// 最后...
分类:其他好文   时间:2015-07-14 09:53:26    阅读次数:106
[LeetCode] Min Stack
Question:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -...
分类:其他好文   时间:2015-07-14 09:50:50    阅读次数:107
[leedcode 70] Climbing Stairs
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:其他好文   时间:2015-07-13 23:41:44    阅读次数:113
Android(java)学习笔记126:Android Studio中build.gradle简介
1.首先我们直接上代码介绍:// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { ...
分类:移动开发   时间:2015-07-13 22:22:55    阅读次数:222
购物车悬浮 + 购物数量显示
上代码:html界面 99 css 样式.cart{position: fixed; width: 40px; height: 40px; line-height:40px;top:20px;right:20px; z-index: 99999; bord...
分类:其他好文   时间:2015-07-13 20:26:12    阅读次数:84
css中的关于margin-top,position和z-index的一些bug解决方案
这两天在写一个demo的时候,就碰到一些css的问题,不知道能不能算bug,很有可能是因为我写的代码太少,孤陋寡闻了_(:зゝ∠)_。记录一下,以防下次遇到同样问题。进入正题:1、问题描述:div嵌套时内部div设置的margin-top样式会作用到外层div(父元素)上。1 4 5 6 ...
分类:Web程序   时间:2015-07-13 20:04:00    阅读次数:140
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!