css排版时出现:里面的div设置margin-top值时外面div会向下移动相应距离的解决方法 先看一简单实例:这是一个段落然后设置样式 #box { margin:10px; background-color: #999; } p {background-color: #990; marg...
分类:
其他好文 时间:
2015-07-14 15:16:20
阅读次数:
96
使用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
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
利用jQuery的animate() 方法,我们很容易实现滚动条的平滑滚动效果:$(function() { $('#top').click( function (e) { $('html, body').animate({scrollTop: '0px'}...
分类:
Web程序 时间:
2015-07-14 13:25:23
阅读次数:
635
【数据结构】 Queue 的简单实现 public class XQueue { /// /// 第一个元素 /// private static XQueueItem _top; /// /// 最后...
分类:
其他好文 时间:
2015-07-14 09:53:26
阅读次数:
106
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
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
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
这两天在写一个demo的时候,就碰到一些css的问题,不知道能不能算bug,很有可能是因为我写的代码太少,孤陋寡闻了_(:зゝ∠)_。记录一下,以防下次遇到同样问题。进入正题:1、问题描述:div嵌套时内部div设置的margin-top样式会作用到外层div(父元素)上。1 4 5 6 ...
分类:
Web程序 时间:
2015-07-13 20:04:00
阅读次数:
140