AngularJS 可以使用数组或对象创建一个下拉列表选项。 使用 ng-options 创建选择框 在 AngularJS 中我们可以使用 ng-option 指令来创建一个下拉列表,列表项通过对象和数组循环输出,如下实例: ng-options 与 ng-repeat 我们也可以使用ng-rep ...
分类:
Web程序 时间:
2016-07-11 21:18:01
阅读次数:
218
效果图 ang.html <!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title><script src="angular.min.js"></script><script src="an ...
分类:
其他好文 时间:
2016-07-11 17:00:06
阅读次数:
176
使用 if和 switch来做逻辑判断,使用 for-in, for, while,以及 repeat-while来做循环。使用圆括号把条件或者循环变量括起来不再是强制的了,不过仍旧需要使用花括号来括住代码块 在一个 if语句当中,条件必须是布尔表达式——这意味着比如说 if hscore {... ...
分类:
编程语言 时间:
2016-07-08 15:16:14
阅读次数:
151
<!Doctypehtml><html><head><metacharset="utf-8"/><title></title><style>*{padding:0;margin:0;}html{height:100%;}body{height:100%;background:url(img/pic10.jpg)no-repeat;background-size:cover;overflow:hidden;}.snowLand{..
分类:
Web程序 时间:
2016-07-08 12:06:11
阅读次数:
197
body{background:url("/branch/comm/images-new/login.jpg") no-repeat;background-size:100%;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src= ...
分类:
其他好文 时间:
2016-07-05 11:45:39
阅读次数:
117
REPEATS - Repeats no tags A string s is called an (k,l)-repeat if s is obtained by concatenating k>=1 times some seed string t with length l>=1. For e ...
分类:
编程语言 时间:
2016-06-29 20:24:22
阅读次数:
278
列表页数据展示 <!-- 查询结果 --> <ul id="ulView"> <li class="bgfff mt-15 ptb15 shopItem" ng-repeat="views in DataListView"> <input type="text" hidden value="{{ v ...
分类:
Web程序 时间:
2016-06-29 18:58:32
阅读次数:
303
1、背景图片或图标也可像img一样给其宽高就能指定其缩放大小了。 比如一个实际宽高36*28的图标,要缩小一半引用进来的写法就是: background:rgba(0, 0, 0, 0) url("../images/report_icon@2x.png") no-repeat scroll lef ...
分类:
其他好文 时间:
2016-06-29 13:08:02
阅读次数:
159
平铺方式 含义 应用场景 repeat 横纵向都平铺,不填时的默认值 小方块图平铺构建整体背景 repeat-x 横向平铺 细长小图实现渐变效果 repeat-y 纵向平铺 小图背景实现特殊边框 no-repeat 背景图不重复平铺 大图做背景或使用偏移量控制 ...
分类:
其他好文 时间:
2016-06-27 17:24:38
阅读次数:
302
属性 含义 举例 background 在一个声明中设置所有的背景属性 background:#cc url(image) repeat 2px 1px background-color 设置背景颜色 background-color:#cc background-image 设置背景图片 back ...
分类:
其他好文 时间:
2016-06-27 17:05:09
阅读次数:
142