码迷,mamicode.com
首页 >  
搜索关键字:repeat    ( 2408个结果)
css设置背景图片
background:pink;图片在背景图上面 background-image:url(food.jpg);一张图片铺满一行background-repeat:repeat-x;同一张图片多张铺满横向 background-repeat:repeat-y;同一张图片多张铺满纵向 backgrou ...
分类:Web程序   时间:2016-07-19 23:43:31    阅读次数:263
AngularJS 表格
ng-repeat 指令可以完美的显示表格。 在表格中显示数据 使用 angular 显示表格是非常简单的: 使用 CSS 样式 为了让页面更加美观,我们可以在页面中使用CSS: 使用 orderBy 过滤器 排序显示,可以使用 orderBy 过滤器: <!DOCTYPE html><html>< ...
分类:Web程序   时间:2016-07-19 23:35:27    阅读次数:330
AngularJS Select(选择框)
AngularJS 可以使用数组或对象创建一个下拉列表选项。 使用 ng-options 创建选择框 在 AngularJS 中我们可以使用 ng-option 指令来创建一个下拉列表,列表项通过对象和数组循环输出,如下实例: ng-options 与 ng-repeat 我们也可以使用ng-rep ...
分类:Web程序   时间:2016-07-19 23:34:05    阅读次数:289
angularjs如何在ng-repeat过程中控制字符串长度超过指定长度后面内容以省略号显示
使用方式:{{some_text | cut:true:100:' ...'}} ...
分类:Web程序   时间:2016-07-18 13:02:52    阅读次数:213
Find Leaves of Binary Tree
Given a binary tree, collect a tree's nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. Example:Given bi ...
分类:其他好文   时间:2016-07-14 01:51:24    阅读次数:129
39. Combination Sum java solutions
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeat ...
分类:编程语言   时间:2016-07-14 01:40:58    阅读次数:191
scale等比缩放才能做到看上去能让线条以中心点展开
.nav-menu>ul>li>a::before { background: #333 none repeat scroll 0 0; bottom: -2px; content: ""; height: 2px; position: absolute;//注意a一定得是relation相对定位才 ...
分类:其他好文   时间:2016-07-13 20:29:03    阅读次数:134
优秀程序设计的18大原则
优秀程序设计的18大原则 1、避免重复原则(DRY - Don’t repeat yourself) 编程的最基本原则是避免重复。在程序代码中总会有很多结构体,如循环、函数、类等等。一旦你重复某个语句或概念,就很容易形成一个抽象体。 2、抽象原则(Abstraction Principle) 与DRY原则相关。要记住,程序代码中每一个重要的功能,只能出现在源代码的一个位置。...
分类:其他好文   时间:2016-07-13 17:28:23    阅读次数:140
使用bootstrap-fileinput上传
项目要个好看点的上传控件,于是搜到了这个。 git的地址是 https://github.com/kartik-v/bootstrap-fileinput 我用的版本还是432,现在又升了= = 我用的功能不多,而且当时用的时候很别扭。 最初我是在 anguler的repeat中使用 这么写的 然后 ...
分类:Web程序   时间:2016-07-13 15:25:13    阅读次数:256
angular ng-options的使用
angular中的ng-options的的使用跟ng-repeat有些类似 实例代码 可复制到本地运行 ...
分类:其他好文   时间:2016-07-12 19:13:47    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!