最近在看项目代码,看到有使用响应式布局技术,这里就大概罗列总结一些看到的,随看随补充吧:@media(max-width:768px){height 257px background url(../images/index_bg_peolpe_bottom1.png) repeat-x 0...
分类:
其他好文 时间:
2015-09-23 15:02:45
阅读次数:
803
介绍基于划分的聚类方法 给定n个对象的集合,将对象划分成K个簇。每个簇至少包含一个对象。 K-Means伪代码 输入:k:簇的数目 D: 包含n个对象的数据集 输出:k个簇的集合 方法: (1) 从D中任意选择K个对象作为初始簇的中心。 (2) repeat a) 根据簇中对象的均值,将每个对象分配...
分类:
其他好文 时间:
2015-09-22 14:36:42
阅读次数:
174
MySQL中的while循环和repeat循环的区别1、while是满足条件才执行循环,repeat是满足条件退出循环;2、while在首次循环执行之前就判断条件,最少执行0次,repeat是在首次执行循环之后才判断条件,循环至少执行一次。...
分类:
数据库 时间:
2015-09-19 13:52:25
阅读次数:
229
以下简化CSS代码:div.container{ width:500px; background-image:url(/img/sprite.png); background-repeat:no-repeat; background-position:0px -78px;}div.containe....
分类:
Web程序 时间:
2015-09-19 12:25:42
阅读次数:
187
ng-repeat用来遍历一个集合或为集合中的每个元素生成一个模板实例。集合中的每个元素都会被赋予自己的模板和作用域。同时每个模板实例的作用域中都会暴露一些特殊的属性。 $index:遍历的进度(0 ... length-1) $first:当元素是遍历的第一个时值为true $middl...
分类:
Web程序 时间:
2015-09-19 12:11:46
阅读次数:
137
之前学习的事视图与模版,我们在控制器文件中直接定义一个数组,让其在模版文件中用ng-repeat指令构造一个迭代器,定义的数组如同以下: $scope.phones = [ {'name':'xioabin','number':'18824863682','age':'12'},...
分类:
Web程序 时间:
2015-09-18 23:16:00
阅读次数:
308
O(nlgn) with repeated numbers.. Please note the extra repeat count array:class Solution {public: /** * @param nums: The integer array * @re...
分类:
其他好文 时间:
2015-09-18 07:04:44
阅读次数:
199
CSS 下拉选择菜单基本的CSS样式不怎么好看,通过一些简单的样式优化,可以得到如下图这样的:html结构如下: 请选择您所在的城市 css样式:.sel_wrap{height:40px;background:#fff url(img/icons.png) no-repeat righ...
分类:
Web程序 时间:
2015-09-17 19:26:33
阅读次数:
203
采用ng-repeat循环发生错误时,如下面的输出对象:Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: c in shopCount, Dup....
分类:
其他好文 时间:
2015-09-16 20:02:52
阅读次数:
156
需要分成三张小图,两头两张JPG,必须是JPG,中间随意 收件人列表 .Msg_T {width: 100%; height: 42px; background: url(../images/T_2.png) repeat-x;}.Msg_TL,.Msg_TR {width: 5...
分类:
其他好文 时间:
2015-09-14 15:36:30
阅读次数:
135