Qustion:(MRC下) 1、定义一个Computer类 实例变量:float width; NSString *name; 方法:一个带两个参数的初始化函数;print()函数;dealloc()函数; 2、定义一个Person类 实例变量:NSString *name; Computer * ...
分类:
其他好文 时间:
2016-08-09 14:59:04
阅读次数:
165
-(CGSize)checTheStringWithHight:(NSString *)theStr font:(float)font { CGFloat xxx; if (SCREEN_WIDTH>320) { xxx=15; }else{ xxx=10; } CGSize sixx= [theS ...
分类:
其他好文 时间:
2016-08-09 14:54:45
阅读次数:
159
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> #container { width: 200px; height: 200px; } .card{ width: ...
分类:
Web程序 时间:
2016-08-09 10:46:31
阅读次数:
1437
构建进度条
在XML布局文件中使用ProgressBar标签布局视图
android:id="@+id/progressbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@android:style/W...
分类:
移动开发 时间:
2016-08-08 21:10:43
阅读次数:
227
第一个、简单的实现页面的对话框的样式 css代码如下: <style> *{ padding:0; margin:0; } .receiveMessage{ border-radius:4px; background:#fffdfb; padding:50px 15px; width:950px; ...
分类:
其他好文 时间:
2016-08-08 19:17:57
阅读次数:
131
圆角问题 这里为圆角, .side{ position: absolute; left: 300px; top: 98px; height: 425px; width: 1066px;}.side li{ background-color:#337ab7; border: none; line-he ...
分类:
其他好文 时间:
2016-08-08 17:19:23
阅读次数:
144
调整图片尺寸from PIL import Imagefrom PIL import ImageEnhancetargetImg = fmImg(srcimgpath, width, height)targetImg.save(targetimgpath, "JPEG")def fmImg(imgP... ...
分类:
其他好文 时间:
2016-08-08 17:17:08
阅读次数:
146
每个HTML元素都可以看作装了东西的盒子 盒子具有宽度(width)和高度(height) 盒子里面的内容到盒子的边框之间的距离即填充(margin) 盒子本身有边框(border) 而盒子边框外和其他盒子之间,还有边界(margin) 内容填充属性(padding) Padding-top 上填充 ...
分类:
Web程序 时间:
2016-08-08 14:34:07
阅读次数:
209
1.如何让文字在容器内垂直居中?
(1)方法:为容器添加line-height属性,使得line-height的值等于容器的height。
(2)代码
无标题文档
.container{
width: 300px;
height: 500px;
margin: 50px;
background: blue;
line-height: 500px;
text...
分类:
Web程序 时间:
2016-08-07 21:49:38
阅读次数:
198
1、显示属性,自身属性,文本属性 推荐样式编写顺序 1 显示属性 :display,list-style,position,float,clear [注意按照横着的顺序] 2 自身属性(合模型):width,height,margin,padding,border,background(第3点) 3 ...
分类:
Web程序 时间:
2016-08-07 21:28:17
阅读次数:
253