一、DIV布局按照定位的方法分为:浮动方法(float),坐标定位方法(position),还有就是两者相结合的方法。 二、DIV布局按照定义单位的不同可分为:固定宽度布局、流体布局、弹性布局和混合布局。 固定宽度布局是将宽度用像素单位定义,它的宽度总保持不变,也被成为“冰布局”。 它的缺点是...
分类:
其他好文 时间:
2014-08-05 00:23:38
阅读次数:
225
整型数据即整数。 整型数据的分类 整型数据的一般分类如下:基本型:类型说明符为int,在内存中占2个字节。短整型:类型说明符为short int或short。所占字节和取值范围均与基本型相同。长整型:类型说明符为long int或long,在内存中占4个字节。无符号型:类型说明符为unsig...
分类:
编程语言 时间:
2014-08-05 00:13:58
阅读次数:
504
_.find(document.styleSheets[4].cssRules,function(cssRule){
if(cssRule.selectorText && cssRule.selectorText.indexOf(".navbar-fixed-top2")>-1){
cssRule.style.position="";
cssRule.style.top = ...
分类:
Web程序 时间:
2014-08-04 21:46:58
阅读次数:
363
CSS 定位属性CSS 定位属性允许你对元素进行定位。属性描述position把元素放置到一个静态的、相对的、绝对的、或固定的位置中。top定义了一个定位元素的上外边距边界与其包含块上边界之间的偏移。right定义了定位元素右外边距边界与其包含块右边界之间的偏移。bottom定义了定位元素下外边距边...
分类:
Web程序 时间:
2014-08-04 21:27:37
阅读次数:
470
题目链接:点击打开链接
先是计算非递增的方案,
若非递增的方案数为x, 则非递减的方案数也是x
答案就是 2*x - n
只需求得x即可。
可以先写个n3的dp,然后发现规律是 C(n-1, 2*n-1)
然后套个逆元即可。
#include
#include
#include
#include
using namespace std;
#define ll long long
#d...
分类:
其他好文 时间:
2014-08-04 17:42:48
阅读次数:
228
1、word-wrap:break-word,内容将在边界内换行,仅用于块对象,内联对象要用的话,必须要设定height、width或display:block或position:absolute。 2、word-break:break-all,用于处理单词折断。 3、white-space:n...
分类:
其他好文 时间:
2014-08-04 14:45:37
阅读次数:
231
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>垂直</title> <style type="text/css"> #content { position:absolute; top:0; bottom:0; left:0; right:0; margin:auto; height:240px; width:70%...
分类:
Web程序 时间:
2014-08-04 14:44:18
阅读次数:
412
Python2.7在Windows上一个bug,UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 33: ordinal not in range(128)...
分类:
编程语言 时间:
2014-08-04 14:33:57
阅读次数:
426
题目链接
题意:给出N,M
执行如下程序:
long long ans = 0,ansx = 0,ansy = 0;
for(int i = 1; i
for(int j = 1; j
if(gcd(i,j) == 1) ans ++,ansx += i,ansy += j;
cout
思路: 首先要会莫比乌斯,然后对于ans,自然是非常好求...
分类:
其他好文 时间:
2014-08-04 14:20:37
阅读次数:
220
DescriptionA manufacturer of sweets has started production of a new type of sweet calledrock. Rock comes in sticks composed of one-centimetre-long seg...
分类:
其他好文 时间:
2014-08-04 14:12:57
阅读次数:
218