算法采用数据集为iris(鸢尾花)可以在UCI上下载 http://archive.ics.uci.edu/ml/datasets/Iris数据集介绍:1. sepal length in cm2. sepal width in cm3. petal length in cm4. petal wid...
分类:
编程语言 时间:
2015-07-14 20:03:17
阅读次数:
132
今天在公司遇到做一个移动端手指滑动的效果,刚开始用了swiper.js插件发现效果不好(文字存在模糊效果)。后来查了一些资料,自己手写了一个使用原生js写的滑动效果。
下面直接上代码:
Document
#id {
width: 1150px;
height: 150px;
background: r...
分类:
移动开发 时间:
2015-07-14 17:57:55
阅读次数:
142
.relatebar li{width:98px;height:146px;padding:5px;float:left;border-left:1px solid #ccc;}.relatebar li:first-child{border-left:0px solid #ccc;}.lanmu3...
分类:
Web程序 时间:
2015-07-14 17:24:13
阅读次数:
338
1. 自动布局的理解iOS自动布局很有用,可以在不同size的屏幕上运行,原先看的头痛,还是习惯用最蠢的[UIScreen mainScreen].bounds.size.width等来布局,后来实在不行了,开始好好地看自动布局,发现理解后真的很好用,现在就来分享分享我的心得吧。首先要明白一个控件在...
分类:
移动开发 时间:
2015-07-14 17:08:53
阅读次数:
177
一、居中元素定宽定高情况.fu{ width: 500px; height: 500px; border:1px solid #000;}.kuangao{ width: 100px; height: 50px; background-color: red;} ...
分类:
其他好文 时间:
2015-07-14 17:06:38
阅读次数:
80
<RatingBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/ratingBar"
android:clickable="false"
style="@style...
分类:
移动开发 时间:
2015-07-14 11:20:45
阅读次数:
645
http://stickerjs.cmiscm.com//*CSS代码片段*//*定义相关CSS*/.sticker{ width: 259px; height: 259px;}.gbtags .sticker-img{ background: url('http://www.gbtag...
分类:
Web程序 时间:
2015-07-14 09:56:48
阅读次数:
124
大家应该知道如何设置一个view组件的位置把,是的,如下: view.frame=CGRectMake(x,y,width,height);//设置组件的x,y坐标,设置组件的宽度高度。。。 如果我单独要设置坐标或者宽度高度,得这样: view.frame.size.width=100; ...
分类:
其他好文 时间:
2015-07-13 23:55:32
阅读次数:
132
过渡效果中有:1平滑效果2线性过渡3由慢到快4由快到慢5慢-快-慢 等等 具体参考w3chool例如: 线性过渡 由慢到快 由快到慢 平滑过渡 由慢到快再到慢 CSS:.out {width: 800px;padding: 1px;b...
分类:
Web程序 时间:
2015-07-13 22:24:15
阅读次数:
129
例如: CSS:@keyframes myfirst { (有的浏览器或者HTML版本过低就的加上-webkit-keyframes)0% {width: 150px;}30% {width: 300px;}50% {width: 500px;}100% {width: 600px;}}.div1....
分类:
Web程序 时间:
2015-07-13 22:16:15
阅读次数:
157