##具体实现1.宽度无限的背景和始终居中的主题内容:首先是背景要用一个div1来做out-background,然后div1的兄弟元素div2来做container。对out-background进行决对定位,对container进行相对定位,并且margin:auto。这样container就会居...
分类:
其他好文 时间:
2015-09-21 09:12:59
阅读次数:
157
一、垂直居中1、利用margin *{margin:0; padding:0; position:relative;} .div1{width:400px; height:400px; background:#f00;margin:20px auto; overflow:hidden;} .div2...
分类:
其他好文 时间:
2015-09-18 18:32:03
阅读次数:
138
Codeforces Round#320 Div2先做个标题党,骗骗访问量,结束后再来写咯。codeforces 579ARaising Bacteriacodeforces 579BFinding Team Membercodeforces 579CA Problem about Polyline...
分类:
其他好文 时间:
2015-09-17 06:21:22
阅读次数:
324
D. Bear and BlocksLimak is a little bear who loves to play. Today he is playing by destroying block towers. He builtntowers in a row. Thei-th tower is...
分类:
其他好文 时间:
2015-09-16 00:55:47
阅读次数:
237
C. Bear and PokerLimak is an old brown bear. He often plays poker with his friends. Today they went to a casino. There are n players (including Limak ...
分类:
其他好文 时间:
2015-09-15 23:04:50
阅读次数:
186
B. Bear and Three MusketeersDo you know a story about the three musketeers? Anyway, you will learn about its origins now.Richelimakieu is a cardinal i...
分类:
其他好文 时间:
2015-09-15 21:51:25
阅读次数:
220
A. Bear and ElectionsLimak is a grizzly bear who desires power and adoration. He wants to win in upcoming elections and rule over the Bearland.There a...
分类:
其他好文 时间:
2015-09-15 21:49:45
阅读次数:
202
2015-09-1221:59:09最近屯题: 1:319 div1 D 分段矩阵快速幂 + floyd 2:319 div2 B 鸽巢原理 3:ZOJ 9月月赛 H题 NTT 4:ZOJ 9月月赛 K题 容斥
分类:
其他好文 时间:
2015-09-12 22:23:14
阅读次数:
174
一个涉及到用户体验的问题~前言因为要做一个发表心情的窗口,肯定要有插入表情的功能,出现问题之前的做法1.写一个可编辑的DIV2.写一个打开表情窗口的按钮3.给表情按钮里面的每个表情加点击事件4.获得表情的html标签5.用jquery的append()将这个HTML标签插入步骤一中的DIV6.步骤一...
分类:
其他好文 时间:
2015-09-08 15:11:05
阅读次数:
110
1 2 3.outer{border: 1px solid #ccc;background: #fc9;}.div1{width: 80px;height: 80px;background: red;float: left;}.div2{width: 80px;height: 8...
分类:
其他好文 时间:
2015-09-01 19:51:10
阅读次数:
133