以前做项目的时候就依葫芦画瓢的设置 { font-family:arial,”microsoft yahei”,simsun,sans-self; } 等类似的字体,然而当更多的设备和系统出现后,以前这样的设置已不能满足网页在各设备上的显示需求。就拿最简单的宋体(simsun)来说吧,在Window...
分类:
Web程序 时间:
2014-07-22 22:52:33
阅读次数:
349
在/usr/shared/dstat目录下dstat_mysql5_conn.py中的部分源代码c = self.db.cursor()c.execute("""show global variables like 'max_connections';""")max = c.fetchone()c....
分类:
数据库 时间:
2014-07-22 22:51:36
阅读次数:
252
Target-Action传值
实质就是:A页面要给B页面传值,A就提供接口出去,抓A到B内部来,A间接调用自己内部方法(相当于,A把自己内部需 要操作的方法,传到B内来,到B内部进行赋值,这样就不存在访问不到各自的局部实例变量)
@property (nonatomic,assign)id traget; @property (nonatomic,assign)SEL action;
[self.traget performSelecto...
分类:
其他好文 时间:
2014-07-19 23:28:19
阅读次数:
281
override func viewDidLoad() { super.viewDidLoad() var swipeRight = UISwipeGestureRecognizer(target: self, action: "respondToSwipeGesture:") s...
分类:
其他好文 时间:
2014-07-19 22:37:06
阅读次数:
239
- (IBAction)changePassWord:(id)sender{ CGSize size = [[UIScreen mainScreen] bounds].size; //增加半透明层 bgView = [[UIView alloc]initWithFrame:self.view...
分类:
其他好文 时间:
2014-07-19 16:31:10
阅读次数:
227
self,自己,在ruby中表示当前对象或默认对象。程序执行的任一时刻,有且仅有一个self。1.谁成为self,在什么位置成为self?要知道哪个对象是self,就必须知道当前的上下文。上下文主要有顶层上下文,类定义上下文,模块定义上下文,方法定义上下文。可以根据下图总结的内容进行self的判断。...
分类:
其他好文 时间:
2014-07-19 15:20:58
阅读次数:
219
例子说明get和post的方法使用:
一、示例用的GET方法:
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")
application...
分类:
其他好文 时间:
2014-07-19 12:02:22
阅读次数:
205
UIButton *downButtonOne = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 50)]; [downButtonOne setImage:[UIImage imageNamed...
分类:
其他好文 时间:
2014-07-18 18:34:16
阅读次数:
191
Enable Horizontal scrolling and disable Vertical scrolling:myWebView.scrollView.delegate = self;[myWebView.scrollView setShowsVerticalScrollIndicator:...
分类:
Web程序 时间:
2014-07-18 17:27:37
阅读次数:
286
帧用来存放子页面,既可以是iframe,又可以是frameset。window对象是全局对象,页面上的一切函数和对象都在它的作用域里。 1、parent代表父窗口、如果父窗口又存在若干层嵌套,则top代表顶级父窗口。self代表窗口自身。Java代码if(self==top){//}判断窗口是否处....
分类:
编程语言 时间:
2014-07-18 12:10:41
阅读次数:
239