.x { border: solid 1px red; width: 100px; height:
100px; position: relative; background-color: ...
分类:
Web程序 时间:
2014-06-13 13:13:47
阅读次数:
262
题目描述Dominos are lots of fun. Children like to stand
the tiles on their side in long lines. When one domino falls, it knocks down the
next one, which k...
分类:
其他好文 时间:
2014-06-13 08:09:51
阅读次数:
318
sition 设置为 relative 的时候,元素依然在普通流中,位置是正常位置,你可以通过 left right 等移动元素。会影响其他元素的位置。
而当一个元素的 position 值为 absolute 或 fixed 的时候,会发生三件事:
把该元素往 Z 轴方向移了一层,元素脱离了普通流,所以不再占据原来那层的空间,还会覆盖下层的元素。
该元素将变为块级元素,相当于给该元素设置了 display: block;(给一个内联元素,如 ,设置 absolute 之后...
分类:
Web程序 时间:
2014-06-11 06:36:55
阅读次数:
307
题目
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,...
分类:
其他好文 时间:
2014-06-11 06:07:11
阅读次数:
392
非常多站点已经不满足于一级标题的展示,可能非常多的时候有二级标题,三级标题等等。那么怎样设置二级标题以及怎样把二级标题做的好看呢。以下的代码中注意:1.为了让二级标题有渐隐渐现的感觉,用了transition样式2.二级标题的定位始终是一个困扰我好久的难题。要确保一级标题有position属性(不能...
分类:
其他好文 时间:
2014-06-10 21:46:08
阅读次数:
292
水题,注意数据范围#include using namespace std;int main(){
long long n,a; cin >> n; long long sum =(n*(n+1))>>1; for(int i = 0
; i >a; sum ...
分类:
其他好文 时间:
2014-06-10 12:47:58
阅读次数:
233
题目描述Dominos are lots of fun. Children like to stand
the tiles on their side in long lines. When one domino falls, it knocks down the
next one, which k...
分类:
其他好文 时间:
2014-06-10 12:08:55
阅读次数:
232
LINUX 如下:
1)导出数据
[root@www.cnscn.org ~]$ mysqldump -u root -p dbname --default-character-set=gbk > base_user.sql;
2)查看导出的sql文件的编码
[root@www.cnscn.org ~]$ file base_user.sql
base_user.sql: UTF-8 Unicode text, with very long lines
3)转成要用的编码
[root@www.cn...
分类:
数据库 时间:
2014-06-10 11:14:39
阅读次数:
394
【题解】:【代码】: 1 #include 2 #include 3 #include 4
#define LL long long 5 using namespace std; 6 7 bool
dp[505][505];//已经用了i个人,已分配出j个任务 8 LL S[505]; 9 ...
分类:
其他好文 时间:
2014-06-10 10:39:06
阅读次数:
159
* 作为数组类模板,肯定没有vector做得好,但是普通的数组有1个好处就是能直接操作内存,vector在这方面就不是很方便了。网上虽然也有数组类模板,多维的设计基本上都不是很好。我这个类模板多维的设计借鉴了vector,如2维数组vector> vvArr;下附源码*/
#pragma once
enum E_POSIITION
{
begin_position = 0,...
分类:
编程语言 时间:
2014-06-10 07:07:51
阅读次数:
327