0.前言
    水平居中基本方法——指定块的宽度并设定块的左右外边距为auto,上下外边距可取0,那么该块可以在父元素中水平居中。
样式如下:
1:margin:0px auto
2:margin-left:auto; margin-right:auto;
    垂直居中基本方法——设定块的上下内边距相等。
样式如下:
    padding-top:20px; paddin...
                            
                            
                                分类:
Web程序   时间:
2014-06-19 12:59:35   
                                阅读次数:
540
                             
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/unique-paths/题意:A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The ...
                            
                            
                                分类:
编程语言   时间:
2014-06-15 23:37:55   
                                阅读次数:
311
                             
                    
                        
                            
                            
                                英文原文:Top 8 Diagrams for Understanding Java 一图胜千言,下面图解均来自 ProgramCreek网站的 Java 教程,目前它们拥有最多的票选。如果图解没有阐明问题,那么你可以借助它的标题来一窥究竟。 1、字符串不变性 下面这张图展示了这段代码做了什么...
                            
                            
                                分类:
编程语言   时间:
2014-06-15 22:21:34   
                                阅读次数:
201
                             
                    
                        
                            
                            
                                A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the...
                            
                            
                                分类:
其他好文   时间:
2014-06-15 19:28:54   
                                阅读次数:
246
                             
                    
                        
                            
                            
                                热点热词-Yi18事件风云榜 (top.yi18.net) 基于热点关键词二开放的新闻事件关注榜,
系统实时采集人们关注事件-基于百度搜索、搜狗热词、google趋势而采集的实时关注
事件与新闻。...
                            
                            
                                分类:
移动开发   时间:
2014-06-15 16:43:08   
                                阅读次数:
572
                             
                    
                        
                            
                            
                                var navH = $(".diy_titleedit").offset().top; //获取要定位元素距离浏览器顶部的距离 var tit_fixed = true; $(window).scroll(function(){//滚动条事件 ...
                            
                            
                                分类:
其他好文   时间:
2014-06-15 09:02:44   
                                阅读次数:
189
                             
                    
                        
                            
                            
                                Description: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 c...
                            
                            
                                分类:
其他好文   时间:
2014-06-15 06:37:02   
                                阅读次数:
200
                             
                    
                        
                            
                            
                                OR1200中实现ICache的文件有or1200_ic_top.v、or1200_ic_fsm.v、or1200_ic_tag.v、or1200_ic_ram.v、or1200_spram.v,分别实现了ICache模块、IC_FSM模块、IC_TAG模块、IC_RAM模块、单口RAM。在ICache中例化了IC_FSM、IC_TAG、IC_RAM模块,在IC_TAG、IC_RAM模块中例化了单口RAM。如图12.4所示。其中IC_TAG、IC_RAM可以称为数据部分,IC_FSM可以称为控制部分,在数据...
                            
                            
                                分类:
其他好文   时间:
2014-06-14 06:24:13   
                                阅读次数:
335
                             
                    
                        
                            
                            
                                手工设置文本与图片相对位置时,常用到如下方法:
setCompoundDrawables(left, top, right, bottom)
setCompoundDrawablesWithIntrinsicBounds(left, top, right, bottom)
意思是设置Drawable显示在text的左、上、右、下位置。
但是两者有些区别:
setCompoun...
                            
                            
                                分类:
移动开发   时间:
2014-06-14 00:18:45   
                                阅读次数:
491
                             
                    
                        
                            
                            
                                Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
                            
                            
                                分类:
其他好文   时间:
2014-06-13 20:36:56   
                                阅读次数:
280