有时候我们做固定平面的3D游戏的时候,有3D镜头适配的需求,最近正好遇到了,临时编了一个,拿出来和大家一起分享:using UnityEngine;
using System.Collections;
public class ScreenUnit : MonoBehaviour {
private float height = 480;
private float width ...
分类:
编程语言 时间:
2015-04-29 19:48:25
阅读次数:
160
PC端显示的效果: 用Chrome开发工具的手机端模式观看,可以看到网页右边出现了许多空白: 解决办法是,在样式中给body添加一个最小宽度,该网页为1200px: body {
min-width: 1200px;
} 添加样式后的显示效果为...
分类:
移动开发 时间:
2015-04-29 17:42:22
阅读次数:
198
1、效果图
2、功能实现
2.1 布局结构
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="80dip"
andr...
分类:
其他好文 时间:
2015-04-29 17:04:40
阅读次数:
169
先发个3D盒子最终效果图制作步骤1:创建基本结构分布把6个面定义到3×3的画布上,1和4暂且是重叠的。html结构比较简单: 1 2 3 4 5 6 CSS部分: *{margin:0;padding:0;} .box{margin:50px auto;width: 300px;hei...
分类:
Web程序 时间:
2015-04-29 16:53:44
阅读次数:
139
日期 formatter:"date",formatoptions: {srcformat:'Y-m-d H:i:s',newformat:'Y-m-d'}value{name:'', index:'', width:50, formatter:'select',formatoptions:{val...
分类:
其他好文 时间:
2015-04-29 16:39:27
阅读次数:
127
主要布局如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="...
分类:
其他好文 时间:
2015-04-29 15:10:59
阅读次数:
177
注://关闭,父窗口弹出对话框,子窗口直接关闭this.Response.Write("");//关闭,父窗口和子窗口都不弹出对话框,直接关闭this.Response.Write("");//弹出窗口刷新当前页面width=200 height=200菜单。菜单栏,工具条,地址栏,状态栏全没有th...
分类:
Web程序 时间:
2015-04-29 13:23:35
阅读次数:
142
首先我们先要需要一张图片 可以百度css sprite 图片保存到电脑,就可以用了
新建一个html文件和css文件
div{
height: 93px;/*要显示框架的高度,可用尺子量*/
width: 35px;/*要显示框架的宽度,可用尺子量*/
margin: 100px;
position: re...
分类:
Web程序 时间:
2015-04-29 10:05:09
阅读次数:
112
当我们在onCreate()回调方法中去调用View的getWidth()、getHeight()、getTop()、getLeft()等方法的时候,是无法获取到正确值的,此时只会返回0。
为什么呢?
因为View的显示必须经历Measure(测量)、Layout(布局)和Draw(绘制)过程。而在Measure与Layout过程完成之后,View的width、height、top、le...
分类:
其他好文 时间:
2015-04-28 21:06:07
阅读次数:
158
HTML: 待付款 待收货/提货 全部订单 Css: .my_nav { width: 100%...
分类:
其他好文 时间:
2015-04-28 20:29:03
阅读次数:
113