Given n non-negative integers representing an
elevation map where the width of each bar is 1, compute how much water it is
able to trap after raining....
分类:
移动开发 时间:
2014-05-19 19:20:26
阅读次数:
332
用jquery实现的一个超级简单的下拉菜单。
效果图
初始效果
鼠标悬浮效果
代码
nav a {
text-decoration: none;
}
nav > ul > li {
float: left;
text-align: center;
padding: 0 0.5em;
}
nav li ul.sub-menu {
...
分类:
Web程序 时间:
2014-05-18 10:48:11
阅读次数:
522
div+css命名规则-增强SEO页头:header登录条:loginBar标志:logo侧栏:sideBar广告:banner导航:nav子导航:subNav菜单:menu子菜单:subMenu搜索:search滚动:scroll页面主体:main内容:content标签页:tab文章列表:lis...
分类:
Web程序 时间:
2014-05-17 19:50:40
阅读次数:
415
/*设置高度、滚动条*/ //其他DIV 高度 var tbheight =
document.getElementById("div_top").scrollHeight +
document.getElementById("div_tools_bar...
分类:
Web程序 时间:
2014-05-16 06:36:06
阅读次数:
383
设置Navigation Bar 透明
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);或者Theme中添加 true
/**
* Convenience function to set the flag bits as specified in flags, as
...
分类:
移动开发 时间:
2014-05-15 18:15:56
阅读次数:
631
创建表:
hive> CREATE TABLE pokes (foo INT, bar STRING);
Creates a table called pokes with two columns, the first being an integer and the other a string
创建一个新表,结构与其他一样
hive> create table n...
分类:
其他好文 时间:
2014-05-15 07:07:58
阅读次数:
303
javascript解释器中存在一种变量声明被提升(hoisting)的机制,即变量(函数)的声明会被提升到作用域的最前面。即使把声明代码写在最后面。
alert(foo); //function foo(){} alert(bar); //undefined var bar = func...
分类:
编程语言 时间:
2014-05-12 00:42:19
阅读次数:
369
本文原地址:http://www.cnblogs.com/xyzhanjiang/p/3653128.html在编写CSS代码的时候,我们会出现多个样式规则作用于同一个元素的情况,例如
Here backgroundheader nav { background-color: red;}#nav.....
分类:
Web程序 时间:
2014-05-10 02:31:35
阅读次数:
282
http://beyondvincent.com/blog/2013/11/03/120-customize-navigation-status-bar-ios-7/
分类:
移动开发 时间:
2014-05-10 00:37:25
阅读次数:
334
StackedBarStackedColumnStackedArea ...
分类:
Web程序 时间:
2014-05-10 00:08:21
阅读次数:
585