自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 资源 (1)
  • 收藏
  • 关注

原创 CSS学习之网格布局grid system - CSS: The Missing Manual

使用container,row和column,container中包含一个或多个row,row中包含一个或多个column。示例:<div class="container"> <!-- row #1 --> <div class="row"> <!-- 3 unit wide column --> <div class="three columns"> <!-- logo her

2016-05-17 17:14:50 353

原创 CSS学习之Position属性 - CSS: The Missing Manual

absolute 生成绝对定位的元素,相对于 static 定位以外的第一个父元素进行定位。总的来说有以下两种情况: A tag is positioned relative to the browser window if it has an absolute position and it’s not inside any other tag that has either absolute,

2016-05-17 15:52:49 266

原创 CSS学习之Layouts方法float - CSS: The Missing Manual

网页有两种布局形式:固态布局(fixed width)和液态布局(liquid)。 固态布局:设计者可以很好的控制网页外观,但不能适配不同分辨率的屏幕显示。 液态布局使用float进行液态布局的要点 浮动元素的html标签一定要位于包围浮动元素的元素标签前面。 总是应该为浮动元素设置width,可以是px em也可以是百分比。 为主栏目设置浮动栏目一边的大于等于浮动栏宽度的margin,使得就算

2016-05-17 10:01:39 296

原创 CSS学习之<img> & Background - CSS: The Missing Manual

<img>的常见属性:border, padding, float, margin, border-radius 常用图片格式:gif,png(一般情况用这个),jpg,svg(除了ie8都支持) background-img的相关属性: background-repeat: repeat/ no-repeat/ repeat-x/ repeat-y/ round(重复图片但不对图片进行裁剪,而是

2016-05-16 10:07:38 308

原创 CSS学习之盒模型 - CSS: The Missing Manual

当两个同级块元素的margin相接的时候会重合,使用值更大的那个margin。最好尽量避免这一情况。 子元素的margin和父元素的margin如果直接相接的话也会重合,叫collapsing margins,为避免这一情况,可以为父元素设置border或者padding,插在两个margin中间。以上情况不会出现在横向的margin上,也不会出现在floating的元素,也不会出现在positio

2016-05-13 17:04:20 458

原创 CSS学习之列表 - CSS: The Missing Manual

无序列表<ul> list-style-type: bullets/ circle/ square/ none; 有序列表<ol> list-style-type: decimal/ decimal-leading-zero/ upper-alpha/ lower-alpha/ upper-roman/ lower-roman/ none;list-style-position: inside/

2016-05-13 14:57:47 375

原创 CSS学习之font - CSS - The Missing Manual

font-family font-family属性的属性值往往使用几种类似字体构成一个font stack,浏览器从第一个依次确认用户本地是否有该字体。 例font-family: Arial, Helvetica, sans-serif; 如果字体名字多余一个单词,使用引号。 例font-family: "Times New Roman", Times, serif; 使用web fonts

2016-05-13 10:18:52 483

原创 CSS学习之样式继承(Inheritance)和优先级 - CSS: The Missing Manual

子元素会继承所有父元素的属性。但有特例情况,如border属性不会被继承。 属性继承规则不可继承的:display、margin、border、padding、background、height、min-height、max- height、width、min-width、max-width、overflow、position、left、right、top、 bottom、z-index、float

2016-05-12 16:50:38 415

原创 CSS学习之选择器 - CSS: The Missing Manual

选择器 class的名字允许使用字母、数字、连字符、下划线,必须使用字母开头, 大小写敏感。 允许一个html标签有多个class,定义方式如下例:<button class="btn add">Add</button> <button class="btn delete">Delete</button> <button class="btn edit">Edit</button> 常常用div或s

2016-05-12 15:22:49 344

原创 React框架入门

在虚拟DOM上创建React对象的方法 //createElement(type, [props], [children…]) //参数type用来指定要创建的元素类型,可以是一个字符串或一个React组件类型。当使用 字符串时,这个参数应当是标准的HTML标签名称,比如:p、div、canvas等等。 //参数props是可选的JSON对象,用来指定元素的附加属性,比如样式、CSS类等等。

2016-05-09 16:46:52 341

原创 objective-c 基础框架 属性列表等

NSObejct//是所有类的基础 //包含关于内省机制方法实现等 //-(NSString *)description //常常在子类里重写此方法,用来以字符串的形式输出该实例的属性信息,使用NSLog(@”%@”,obj)来调用。 //-(id)copy; -(id)mutableCopy;NSString//使用Unicode,包含所有语言 //@”foo”会创建一个NSStrin

2016-04-27 16:16:29 667

原创 Objective-c 方法调用&内省机制(introspection)&selector

//所有的objects都存储在heap里,因此永远使用指针来访问abjects 例:NSString *s = …; //statically typed id obj = s; //not statically typed, but perfectly legal //千万不要写成id *,那表示object的指针的指针//程序在runtime才会决定执行怎样的code,遇到

2016-04-26 16:18:10 361

原创 Objective-c nil & 初始化

nil:指向空内容的指针的值为nil,nil的值为0 //instance variables that are pointers to objects start out with the value of nil //调用值为nil的指针的方法,程序不会报错,也不会做任何事情,如果有返回值那么返回值为0,如果返回C Struct,那么是不确定的值。instance methods //以

2016-04-25 23:56:20 316

原创 Objective-c之strong和weak

strong : “Keep this in the heap until I don’t point to it anymore.” //将指针设为nil则代表不再指向它 //没有任何strong的指针指向它的时候,它就会把自己从堆里删除weak : “Keep this as long as someone else points to it strongly.” //iOS5及以上,

2016-04-25 19:55:01 281

原创 Objective-C学习

.h #import “其它.h文件” @interface 类名: 父类 //public方法的声明 @end .m #import “包含该类的.h文件” @interface 类名() //private方法的声明 @end @implementation 类名 //public和private方法的定

2016-04-24 14:24:49 243

原创 hihocoder1269 优化延迟(二分&优先队列)

数组 方便快速访问 链表 适合元素移动记住每次都要include<math.h>分配动态数组 int len; cin>>len; int *a = new int[len];

2016-03-10 14:09:43 254

原创 Pat A 1002

2015-2-6 Notice:相同指数项相加,系数为0时,此项去掉。 Learn: cout Code: #include #include using namespace std; int main(){ int term1num, term2num; double poly1[10][2]; double poly2[10][2]; cin>>term1n

2015-02-06 14:48:45 232

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除