@media screen and (min-width:800px) and (max-width:1060px){ li{ font-size:10em; }}意味着,在屏幕上(而不是打印机)并且当最小像素为800,最大像素为1060时应用括号内的样式因为css(层叠样式表)后...
分类:
其他好文 时间:
2015-07-23 23:42:51
阅读次数:
128
I/OSystem.out is a PrintStream object that outputs to the screen.System.in is a InputStream object that reads from the keyboard.InputStream objects (l...
分类:
编程语言 时间:
2015-07-22 12:14:47
阅读次数:
130
头部header.php调用css样式,1/style.css"type="text/css"media="screen"/>如wordpress模板调用图片的话,(前提是图片存放在你主题文件夹内,如images文件夹下)1/images/xxx.gjpg"alt="标题"width="100px"...
分类:
其他好文 时间:
2015-07-20 21:27:22
阅读次数:
113
获取屏幕大小工具类 import?android.app.Activity;
import?android.util.DisplayMetrics;
public?class?Screen?{
private?Screen(){
}
public?static?float?getDensity(Activity?active)?{
...
分类:
其他好文 时间:
2015-07-20 17:08:39
阅读次数:
110
完美解决解决Android使用Zxing扫描二维码改成竖屏后,后面的预览画面出现了拉伸,扭曲的情况
第一步:找到com.zxing.camera包下的CameraConfigurationManager.java文件中的void initFromCameraParameters(Camera camera)方法第二步:在 Log.d(TAG, "Screen resolution: " + scre...
分类:
移动开发 时间:
2015-07-17 22:49:31
阅读次数:
228
目前桌面使用google默认使用Launche2,源代码位置为:sdk/packages/apps/Launcher2, 桌面快捷方式在:sdk/packages/apps/Launcher2/res/xml/default_workspace.xml中修改。如图: 其中: launcher:screen="1"为:...
分类:
移动开发 时间:
2015-07-17 19:10:31
阅读次数:
198
* BOM:浏览器对象模型
* 介绍:
* window对象:窗口对象,一个页面就具有一个window对象.
* Navigator对象:浏览器对象,用于存储当前浏览器的基本信息.
* Screen对象:屏幕对象,用于存储当前浏览器显示的一些信息,例如:高度、宽度等.
* Location对象:本地对象,用于存储当前浏览器所访问网...
分类:
其他好文 时间:
2015-07-17 16:20:51
阅读次数:
90
Question:Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the st...
分类:
其他好文 时间:
2015-07-17 07:07:50
阅读次数:
115
/**
* 点击评分,如果评分后,显示的弹出框
*/
private void showMakeGradeMarkedWindow() {
View view = LayoutInflater.from(DetailActivity.this).inflate(
R.layout.grade_screen_marked, null);
final PopupWindow...
BOMwindows对象document对象location对象screen对象Windows对象1.窗口操作移动指定的距离:window.moveBy(10,20); //向右移动10像素,向下移动20像素移动到指定位置:window.moveTo(x,y);修改窗口的高宽:wi...
分类:
其他好文 时间:
2015-07-16 02:04:42
阅读次数:
146