text-decoration: none; /*去除a标签下划线*/background: url(img/a-bg.png)no-repeat center center; /*插入背景图片*/line-height: 25px; /*行高*/outline:none; /*去除input样式*...
分类:
Web程序 时间:
2014-10-27 00:15:25
阅读次数:
312
#box{width:832px;height:832px;margin:0 auto;border:1px solid red;}
.col{width:50px;height:50px;border:1px solid #fff;float:left;background:url(xin.jpg) no-repeat;}
...
分类:
编程语言 时间:
2014-10-25 17:23:21
阅读次数:
192
新增action中的方法
以前,当我们需要重复一个action的时候,我们需要:
sprite.runAction(cc.Repeat.create(action, 2));
上面代码中创建了一个新的Repeat对象重新包装action,这样不管在语义上还是代码上都比较难理解。 为什么我们不能像jQuery一样的简单方便的使用原action呢?
于是我们在新版本中为actio...
angularjs 使用ng-repeat报错 {{word}}[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys 发现是由于...
分类:
其他好文 时间:
2014-10-22 09:55:11
阅读次数:
151
background:url(../p_w_picpaths/dian.png)no-repeat;no-repeat(可以设置图片不重复)背景图片的css代码,用得最多的是lefttopno-repeatrepeat-xrepeat-y设置平铺坐标(经常用的代码是background-position:lefttop;background-repeat:no-repeat;)。background-position可以设置..
分类:
Web程序 时间:
2014-10-21 19:52:28
阅读次数:
279
例子:“aaaabcaa”,查找a则返回值为0,长度为4;
#include
#include
using namespace std;
int find_max_repeat(char *str, char ch, int *len)
{
char *p=str;
int num(0),start(0);
while(*p!='\0')
{
...
分类:
其他好文 时间:
2014-10-20 13:36:21
阅读次数:
141
AngularJS 常用的功能第一 迭代输出之ng-repeat标签ng-repeat让table ul ol等标签和js里的数组完美结合 {{person.name}} is {{person.age}} years old. 你甚至可以指定输出的顺序:第二 动态绑定之ng-model...
分类:
Web程序 时间:
2014-10-19 12:50:16
阅读次数:
175
How do I use bash for loop to repeat certain task under Linux / UNIX operating system? How do I set infinite loops using for statement? How do I use t...
分类:
其他好文 时间:
2014-10-14 05:05:07
阅读次数:
249
前期准备: createt table employee(ID int ,Name varchar(4)); 用下列方法向表中循环插入数据。----------------------------------------------------------------------...
分类:
数据库 时间:
2014-10-11 19:13:36
阅读次数:
155
border:1px solid red;background:red url("img/1.gif") no-repeat fixed center;顺序依次是:background-color:背景颜色background-image:背景图片backgroud-repeat:背景重复(页面上对...
分类:
Web程序 时间:
2014-10-10 15:03:14
阅读次数:
176