一、效果图。二、HTML+CSS代码。<style>.box{width:800px;margin:90pxauto;}.btn{padding:5px10px;color:#fff;background:#ff6600;cursor:pointer;font-size:16px;border-radius:5px;}.list{position:relative;margin-top:20px;}.listli{width:50px;height:50px;position..
分类:
Web程序 时间:
2014-10-20 17:34:33
阅读次数:
311
function fromHex(color){
/*
summary:
将css的属性值,转变为rgb格式的对像
"#fff" -> 0xfff
长度为4, 一个字符占用代表一个属性, 0x10 == 16(2的4次方,即1后面4个0) === 1 0000, 那么一个f 为 1111...
分类:
Web程序 时间:
2014-10-16 19:35:02
阅读次数:
284
Dictionary dic1 = new Dictionary(); dic1.Add("ddd","123"); dic1.Add("aaa", "123"); dic1.Add("ccc", "123"); dic1.Add("fff", "123");...
分类:
其他好文 时间:
2014-10-09 17:34:47
阅读次数:
212
在自定义Dialog时显示的界面中老是有黑色的边框,下面就介绍使用style去除黑色边框方法。
首先在values/styles定义自定义样式:
@null
@drawable/actionbar_item_background
true
true
@null
#FFF
@d...
分类:
移动开发 时间:
2014-10-09 01:46:19
阅读次数:
226
布局 CSS #bnts span { cursor: pointer; float: left; border: 1px solid #FFF; width: 10px; height...
分类:
其他好文 时间:
2014-10-07 13:32:13
阅读次数:
114
CSS样式: .contextMenu { position: absolute; min-width: 100px; z-index: 1000; background: #fff; border-top: solid 1px #CCC; ...
分类:
其他好文 时间:
2014-09-30 17:22:49
阅读次数:
256
今天早上在写代码的时候,需要用到地图坐标拾取工具,我们用的是搞的地图,在高德地图API官方网站中没有找到相关的坐标拾取工具。在网上找到这么个小工具,与大家分享下!CSS 1 html { background-color: #fff; } 2 body, div, h1, h2, ...
分类:
其他好文 时间:
2014-09-26 19:32:18
阅读次数:
1694
//$str = 'fff&sdf你是sdf好fdf啊b歌hello中world';$str = 'd你b_fff是好啊歌中潺潺 ';echo chineselength($str)."-----";function chineselength($str){ $s=iconv("utf-8","gb...
分类:
其他好文 时间:
2014-09-26 13:47:08
阅读次数:
141
题目地址:HDU 2604
这题只要推出公式来,构造矩阵就很容易了,问题是推不出公式来。。TAT。。
从递推的思路考虑,用f(n)表示n个人满足条件的结果,如果最后一个是m则前n-1人可以任意排列,有f(n-1)种;如果是f,则考虑后两位mf和ff,没有一定满足或者一定不满足的状态,所以继续考虑一位,考虑后三位mmf, fmf, mff, fff,其中fmf和fff不符合条件,如果是mmf,则...
分类:
其他好文 时间:
2014-09-18 16:33:44
阅读次数:
185
中秋节快乐啊。。。 .a-btn{ display:block; position:relative; width:300px; margin:30px auto; height:40px; line-height:40px; border:2px ridge #fff; color:#fff; t...
分类:
其他好文 时间:
2014-09-10 14:00:10
阅读次数:
176