MySql 笔记三 循环语句mysql 操作同样有循环语句操作,网上说有3中标准的循环方式: while 循环 、 loop 循环和repeat循环。还有一种非标准的循环: goto。 鉴于goto 语句的跳跃性会造成使用的的思维混乱,所以不建议使用。这几个循环语句的格式如下:WHILE……DO……...
分类:
数据库 时间:
2014-10-28 19:28:37
阅读次数:
377
只需要设置img的background即可
css设置:
#detailModel .detailImg{
width: 100%;
border-radius: 5px;
border: 1px solid #c3c3c3;
background:url("../img/load2.gif") no-repeat cente...
分类:
其他好文 时间:
2014-10-27 17:48:15
阅读次数:
203
background:#76CEF6url("../images/bg.jpg")repeat-x00;-webkit-background-size:100%;-moz-background-size:100%;-o-background-size:100%;background-size:100...
分类:
其他好文 时间:
2014-10-27 12:12:38
阅读次数:
226
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