1.避免重复原则(DRY - Don’t repeat yourself) 编程的最基本原则是避免重复。在程序代码中总会有很多结构体,如循环、函数、类等等。一旦你重复某个语句或概念,就会很容易形成一个抽象体。 2.抽象原则(Abstraction Principle ) 与DRY原则相关。...
分类:
其他好文 时间:
2015-09-10 20:56:10
阅读次数:
152
.position label{ background:url(../img/bread_arr.gif) no-repeat right center; padding-right:15px; margin-right:10px; letter-spacing:0.5px; color:#777;...
分类:
Web程序 时间:
2015-09-10 19:31:25
阅读次数:
132
@charset "utf-8";body{ background-color:#332244;/*//背景颜色*/ background-image:("../kk.jpg");/*//背景图片*/ backgroud-repeat:no-repeat;/*//不平铺*/ background-p...
分类:
Web程序 时间:
2015-09-06 23:02:54
阅读次数:
367
background-repeat属性的定义和用法: 设置或检索对象的背景图像如何铺排填充。必须先指定background-image属性。? 允许提供2个参数,如果提供全部2个参数,第1个用于横向,第二个用于纵向。? 如果只提供1个参数...
分类:
Web程序 时间:
2015-09-02 02:19:55
阅读次数:
5527
CSS如何设置背景图片水平重复和垂直重复:设置背景图片的水平平铺或者垂直平铺非常的简单,使用两端代码就可以了,代码如下:background:url("photo.gif") repeat-y;以上代码可以让背景图片在垂直方向上平铺。background:url("photo.gif") repea...
分类:
Web程序 时间:
2015-09-02 02:04:10
阅读次数:
692
background-repeat属性的定义和用法:设置或检索对象的背景图像如何铺排填充。必须先指定background-image属性。允许提供2个参数,如果提供全部2个参数,第1个用于横向,第二个用于纵向。如果只提供1个参数,则用于横向和纵向。特殊值repeat-x和repeat-y除外,因为r...
分类:
Web程序 时间:
2015-09-02 02:03:49
阅读次数:
236
[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use ‘track by‘ expression to specify uniq 在 ng-repeat中加track?by?$index...
分类:
其他好文 时间:
2015-09-01 21:39:20
阅读次数:
181
<ulng-init="names=[
{name:‘乔乐‘,age:‘25‘},
{name:‘周迅‘,age:‘40‘},
{name:‘魏瑞‘,age:‘25‘},
{name:‘展昭‘,age:‘98‘}
]">
<ling-repeat="infoinnames">{{$index+1}}、今年{{info.name}}已经{{info.age}}岁了!{{$first}}-{{$middle}}-{{$last}}-{{$even}}-..
分类:
Web程序 时间:
2015-09-01 18:34:04
阅读次数:
199
1. 背景 纯色和背景图像background-colorbackground-imagebackground-repeat background-positioin background-attachmentCSS3: background-size background-origin backg...
分类:
Web程序 时间:
2015-08-31 11:42:57
阅读次数:
261
History repeat itselfTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4342DescriptionTom took the Discrete Ma...
分类:
其他好文 时间:
2015-08-30 21:01:21
阅读次数:
136