<div id="ad"
style="position:absolute"><a href="http://www.cnblog.com/wayne173"
target="_blank"><img src="http://static.cnblogs.com/ima...
分类:
Web程序 时间:
2014-05-23 06:58:38
阅读次数:
330
上篇实例为图片浏览器是从小说阅读器直接将图片分页替换文本分页,还是双页显示。页面小阅读比较吃力,本篇拟改动几行代码,用全屏显示,看看效果如何。
#pgnumber{position:fixed;font-size:12px;left:200px;height:25px;top:10px;width:200px;z-index:1;} 原top改成10px,也就是从页脚改到页眉,可以动...
分类:
移动开发 时间:
2014-05-23 02:28:51
阅读次数:
397
介绍通过方法
@Override
public boolean areAllItemsEnabled() {
return false;
}
@Override
public boolean isEnabled(int position) {
return !mStrings[position].startsWith("-");
}
设置list的可以选和不可选注意有...
分类:
其他好文 时间:
2014-05-22 23:08:09
阅读次数:
388
【题目】
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is to reach the last index in the minimum number of ju...
分类:
其他好文 时间:
2014-05-22 17:02:20
阅读次数:
244
1.编程思想在于:
使用background-position属性(设置背景图像的起始位置)。这个属性设置背景原图像(由 background-image
定义)的位置,背景图像如果要重复,将从这一点开始。 2.CSS基础介绍: 1.如何定位背景图像:body{ background-image:u...
分类:
Web程序 时间:
2014-05-21 23:59:18
阅读次数:
573
参考别人的code, 看似不难的题,其实挺费事的。思想还是:From this example, we
can see that in the first position of the resulting combinations we can chose
number 1-5. Assume t...
分类:
其他好文 时间:
2014-05-21 14:24:04
阅读次数:
241
最近编写Python程序时经常遇见中文相关的问题,这里说一个问题的解决方法。
我在使用json模块的dumps()函数时,因为涉及到中文,报出如下错误:
ascii codec can't decode byte 0xe8 in position 0:ordinal not in range(128)
这是编码相关的问题,在该程序中加入如下代码:
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
这样就可以解决该问题了,希望对大家有所帮助。...
分类:
编程语言 时间:
2014-05-21 09:47:21
阅读次数:
323
??
ViewPaper和slidingmenu冲突?
通过查看slidingmenu的viewpage例子,发现如下代码,添加进去后调试正常.
@Override
public void onPageSelected(int position) {
switch (position) {
case 0:
...
分类:
其他好文 时间:
2014-05-21 07:53:14
阅读次数:
184
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n =
4,
return 1->4->3->2->5->NULL.
Note:
Given m, n satisfy the fol...
分类:
其他好文 时间:
2014-05-21 07:18:02
阅读次数:
301
DearsirorMadam:ThislettercomesforyoufromastudentnameLiming.Iamwritingtoyoutoapplyforadmissionintoyourrecentlyadvertisedpositionforastaffmember.IamsurethatIamqualifiedforit.First,enclosewiththisletterismyresume,whichfurtherdetailsmypreviousacademicqualificat..
分类:
其他好文 时间:
2014-05-20 19:08:26
阅读次数:
269