Grid-A-Licious是一款遵守MIT协议的响应式瀑布流插件。该插件总代码行不超过400行,实现很巧妙,使用时也很流畅。实现原理也很简单,根据屏幕宽度和参数中设置的列宽度以及每项之间的间隔宽度,计算出当前屏幕宽度下应该生成几个等宽列;列生成好之后,再把每项放到等宽列中;当屏幕尺寸改变时,重新计...
分类:
其他好文 时间:
2015-04-07 23:15:46
阅读次数:
180
The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K)
was initially p...
分类:
其他好文 时间:
2015-04-07 21:44:54
阅读次数:
139
项目遇到jsp页面显示的效果需要修改,通过.css修改.jsp
需求是把grid panel往下移,这样美观一点。修改成下面这样:
通过审查元素确定这部分是。新建.css文件。
@CHARSET "UTF-8";
#topic-grid {
padding-top:36px;
}
在jsp文件中加上这句话,配置css文件路径。
这样css文件中的代码就会起效果了...
分类:
Web程序 时间:
2015-04-07 17:48:48
阅读次数:
126
在Windows Phone开发过程中,对不同尺寸手机屏幕的适应是对编程的一大要求和挑战,当然这就像做网站要适应各
种各样的电脑屏幕的大小一样.
当然在WP开发这一点上,微软给了我们很多中已经封装好布局的模板和控件,归根结底,还是那几个布局控件:
Grid,StackPanel,Canvas,Pivot.....
所以,分歧就来了,对于追求视觉上冲击和美观的程序员来说,虽说要秉承微软的大块布局,内容为先的策略,但是
依旧不喜欢微软的那些既定的模板,所以解决方案就有两个。
一:创建项目时依旧用那些...
Android之Adapter用法总结
1.Adapter概念
定义为将一个类的接口变换成客户端所期待的一种接口,从而使原本因接口不匹配而无法在一起工作的两个类能够在一起工作。
在android中我们可以这么看, Adapter是连接后端数据和前端显示的适配器接口,是数据和UI(View)之间一个重要的纽带。在常见的View(List View,Grid View)等地方都需要用到A...
分类:
移动开发 时间:
2015-04-07 10:02:20
阅读次数:
171
public class GridHelper { //请注意:可以通过propa这个快捷方式生成下面三段代码 public static bool GetShowBorder(DependencyObject obj) { r...
分类:
其他好文 时间:
2015-04-07 09:36:08
阅读次数:
620
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2015-04-06 21:31:45
阅读次数:
136
一:unique Path
题目:
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 i...
分类:
其他好文 时间:
2015-04-06 17:21:59
阅读次数:
251
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 ...
分类:
其他好文 时间:
2015-04-06 12:53:23
阅读次数:
132
题目:leetcode
Dungeon Game
The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. ...
分类:
其他好文 时间:
2015-04-06 08:51:43
阅读次数:
150