就如同C里的if else,while,do,repeat;就看lua里怎么用:
1、首先看if else
t = {1,2,3}
local i = 1
if t[i] and t[i] % 2 == 0 then
print("even")
else
print("odd")
end
lua木有C里的&&,而是and来表示;if 之后跟表达式,之后要更个then 最后语句结束都要...
分类:
其他好文 时间:
2014-06-01 18:13:48
阅读次数:
567
body{ background-position:center;
background-repeat:no-repeat; }div#div1{ position:fixed; top:0; left:0; bottom:0;
right:0; z-i...
分类:
其他好文 时间:
2014-05-31 14:11:16
阅读次数:
243
.oLi-lists-scroll::-webkit-scrollbar { width:5px;
padding:1px; background:url(../images/repeat-bar.png) repeat-y;}/* Track
*/.oLi-lists-scroll::-webki...
分类:
Web程序 时间:
2014-05-29 19:02:39
阅读次数:
386
background:url(logo2.png) no-repeat;
_background-image:none;
_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’logo2.png’);
注意:滤镜的图片路径是以...
分类:
其他好文 时间:
2014-05-28 22:34:19
阅读次数:
276
每天进步一小步,一年进步一大步。本篇主要介绍背景图片设置,平铺,x
y方向上的平铺,是否重复显示no repeat
显示的初始位置background-image:url(images/index_top_bg.jpg)...........................................
分类:
其他好文 时间:
2014-05-26 12:36:08
阅读次数:
242
问题 C: Repeat Number
时间限制: 1 Sec 内存限制: 128 MB
提交: 23 解决: 7
[提交][状态][论坛]
题目描述
Definition: a+b = c, if all the digits of c are same ( c is more than ten),then we call a and b are Repeat Number. My...
分类:
其他好文 时间:
2014-05-26 04:03:34
阅读次数:
228
background:url(背景图片路径)
no-repeat;/*不重复默认在左上方*/background:url(背景图片路径) no-repeat
center;/*不重复背景图片中间显示*/background:url(背景图片路径) no-repeat bottom center...
分类:
Web程序 时间:
2014-05-25 14:59:25
阅读次数:
276
1 #include 2 3 4 using namespace std; 5 6 void
Repeat(int* a,int Left,int Right); 7 int QuickSort(int* a,int Left,int Right); 8
9 10 void main()1...
分类:
其他好文 时间:
2014-05-22 14:53:10
阅读次数:
224
一般给一个元素设置背景:.lcProIcon { background:
url("images/lcProIcon.png") no-repeat; display: inline-block; height: 56px;
left: 0; position: abs...
分类:
其他好文 时间:
2014-05-15 21:19:44
阅读次数:
333
.left .left_down
li.a.left-down-pic{display:block;width:50px;height:50px;background:url(images/app_icons_50_6.jpg)
-400px 0px no-repeat;//关键是这句话}
分类:
Web程序 时间:
2014-05-14 11:36:25
阅读次数:
419