Supporting Multiple ScreensAndroid runs on a variety of devices that offer different screen sizes an...
分类:
移动开发 时间:
2016-10-31 18:58:44
阅读次数:
333
date 对象 表示日期 没有基本类型,自动创建 需要添加new手动创建对象 var myDate = new Date() console.log(myDate) 返回的是字符串--当前时间的字符串 date 方法 构造函数调用的本身的使用方法 在网页中直接设置标签的内容 推荐使用火狐上mozla ...
分类:
Web程序 时间:
2016-10-30 19:36:45
阅读次数:
241
Design a Snake game that is played on a device with screen size = width x height. Play the game online if you are not familiar with the game. The snak ...
分类:
其他好文 时间:
2016-10-30 16:35:30
阅读次数:
268
今天介绍一下关于logstash的启动方式,以前说的都是使用/usr/local/logstash-f/etc/logstash.conf方式启动,这样就有一个麻烦,当你关闭终端,或者ctrl+c时logstash就会退出。下面介绍几种长期运行的方式。1、service方式使用rpm方式安装的,都可以/etc/init.d/logstash启动,..
分类:
其他好文 时间:
2016-10-28 15:59:12
阅读次数:
308
Let’s write a short program that clears the screen, displays the current disk directory, and asksthe user to enter a filename. (You might want to exte ...
分类:
其他好文 时间:
2016-10-28 03:11:22
阅读次数:
243
lufy前辈写过《[代码艺术]17行代码的贪吃蛇小游戏》一文,忽悠了不少求知的兄弟进去阅读,阅读量当然是相当的大。今天我不仿也搞一个这样的教程,目地不在于忽悠人,而在于帮助他人。 先看demo效果图: 测试URL: http://www.cnblogs.com/yorhom/articles/315 ...
分类:
Web程序 时间:
2016-10-27 19:35:58
阅读次数:
342
UC浏览器 1.设置屏幕横屏还是竖屏 <meta name="screen-orientation" content="portrait | landscape"> 2.设置是否全屏,yes是强制全屏 <meta name="full-screen" content="yes | no"> 3.缩放 ...
分类:
移动开发 时间:
2016-10-27 13:21:46
阅读次数:
331
/* iPhone 4 and 4S */ /* Portrait and Landscape */ @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-dev ...
分类:
移动开发 时间:
2016-10-27 12:29:58
阅读次数:
291
1.media控制布局 <link type="text/css" rel="stylesheet" href="css04.css" media="only screen and (max-width:640px)"> <style> @media screen and (max-width:60 ...
分类:
Web程序 时间:
2016-10-26 19:38:37
阅读次数:
202