soso
body{ background-color:#333; margin:0 auto;}
.div{ background-image:url(DSC00004.JPG); height:690px; width:1228px; margin:0 auto;}
form{ float:left; background-colo...
分类:
Web程序 时间:
2015-03-22 09:20:44
阅读次数:
278
Optimization Objective
Large Margin Intuition
Mathematics Behind Large Margin Classification (Optional)
Kernels...
分类:
系统相关 时间:
2015-03-21 23:02:31
阅读次数:
606
有时候我们需要用CSS选择非第一个子元素,例如下面这样的HTML,希望让两个span之间间隔一定的距离,但又不希望简单的给每个span设置margin-right(会导致最后一个span也有margin-right,可能影响之后元素的排版)。
这时如果能排除第一个元素,并给其他元素设置margin-left属性,就能实现比较好的效果了。
可以利用no...
分类:
Web程序 时间:
2015-03-21 20:02:29
阅读次数:
23283
html, body{
margin:0;
padding:0;
}
.top{
width:100%;
height:36px;
background-color: #ff0000;
z-index:9999;
}
.bottom{
width:100%;
height: 36px;...
分类:
Web程序 时间:
2015-03-20 18:38:57
阅读次数:
180
不可继承的:display、margin、border、padding、background、height、min-height、max- height、width、min-width、max-width、overflow、position、left、right、top、 bottom、z-inde...
分类:
Web程序 时间:
2015-03-20 18:31:45
阅读次数:
215
CSS书写顺序1.位置属性(position, top, right, z-index, display, float等)2.大小(width, height, padding, margin)3.文字系列(font, line-height, letter-spacing, color- text...
分类:
Web程序 时间:
2015-03-20 17:49:59
阅读次数:
140
-(void)viewDidLoad{ //列数 int columns = 3; //每个图片之间的间距 = (控制器view的宽度 - 列数 * 图片的宽度)/ (列数 + 1) CGFloat margin = (self.view.frame.size.width - columns...
分类:
其他好文 时间:
2015-03-20 15:50:07
阅读次数:
147
在Web开发中,后端跟前端配合很容易出现问题,这时我们就需要一些规则来约束前端随意的编写。
CSS编程规范
1. 属性书写基本顺序
a. 先位置属性(position, top, right, z-index, display, float等)
b. 大小(width, height, padding, margin)
c. 文字(font...
分类:
Web程序 时间:
2015-03-20 14:31:06
阅读次数:
256
1.第一种样式#news { width:500px; }#news li{ list-style-type:none; float:left; width:100px; text-align:center; background:#ccc; margin-right:2px; margin-bot...
分类:
Web程序 时间:
2015-03-20 10:45:17
阅读次数:
247
1、css样式
.photoX{
margin: 5px;
width: 300px;
height: 200px;
border:1px solid #5df;
}
.rubbish{
width:32px;
height:32px;
position:absolute;
z-index: 10;
left: 270px;...
分类:
其他好文 时间:
2015-03-19 20:22:48
阅读次数:
139