码迷,mamicode.com
首页 >  
搜索关键字:height    ( 24230个结果
CSS实现DIV水平居中和上下垂直居中
上下垂直居中 在线演示 DIVCSS5 #main { position: absolute; width:400px; height:200px; left:50%; top:50%; margin-left:-200px; margin-top:-100px; border:1px solid #00F } /*css注释:为了方便截图,对CSS代码进行换行*/ DI...
分类:Web程序   时间:2014-06-05 11:36:39    阅读次数:253
window.open()详解及浏览器兼容性问题
一、基本语法:window.open(pageURL,name,parameters)其中:pageURL 为子窗口路径name  为子窗口名字parameters 为窗口参数(各参数用逗号分隔)二、示例 window.open('page.html','newwindow','height=500,width=800,top=0,left=0, toolbar=no,menuba...
分类:Windows程序   时间:2014-06-05 07:37:48    阅读次数:403
横屏小游戏--萝莉快跑源码分析一
菜单主页面:   主菜单页面背景 CCSprite* bg = CCSprite::create("MainMenu.png"); bg->setScale(0.5); bg->setPosition( ccp(size.width/2, size.height/2) ); this->addChild(bg, 0,0); 菜单按钮及其效果,单击事件...
分类:其他好文   时间:2014-06-05 00:55:52    阅读次数:437
[Unity菜鸟] 笔记2 —— 问题篇
1. 初始不能降低Terrain的高度,需要到Terrain设置的第二个按钮中将Height从0调高 (注意:最右边齿轮按钮里的Terrain Height是整个地形的最大高度,左图是当前笔刷绘制的最大高度)
分类:其他好文   时间:2014-06-03 08:24:10    阅读次数:226
POJ 2241 The Tower of Babylon
DP求解。对Blocks的先按照X降级,再按照Y降级排序,可以转化为最长公共子序列问题,即求子序列权值之和最大。 #include #include #include using namespace std; #define MAX_SIZE 300 struct Block{ int x; int y; int height; }; int nums...
分类:其他好文   时间:2014-06-03 04:39:44    阅读次数:223
LeetCode: Largest Rectangle in Histogram [084]
【题目】 Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3]. The...
分类:其他好文   时间:2014-06-01 10:46:29    阅读次数:242
UIView的autoresizingMask属性的使用
在iOS应用的开发过程中,经常会使用,setFrame的方式对UIView进行布局,经常会使用计算的方式,如self.view.bounds.size.height - 20-44- Heignt等来计算Y的相对位置我们知道上边的数字 20是status bar的高度,44是navigationBa...
分类:其他好文   时间:2014-05-31 15:09:59    阅读次数:231
CSS3 Loading(加载)动画效果
1.html 部分 2.css 部分.spinner { margin: 100px auto; width: 50px; height: 60px; text-align: center; font-size: 10px;} .spinner > div { back...
分类:Web程序   时间:2014-05-31 11:52:06    阅读次数:555
html中的meta详解
1name=viewport 1、width :控制viewport的大小,可以指定一个值,如600, 或者特殊的值,如device-width为设备的宽度(单位为缩放为100%的CSS的像素)2、height :和width相对应,指定高度3、initial-scale :初始缩放比例,页面第一....
分类:Web程序   时间:2014-05-31 08:28:46    阅读次数:326
日志发布测试
标题1 列表1 列表2 表格2 table width=186 height=57 style="border-collapse:collapse;width:139.50pt;"> idint download_idint headerstring 段落 正文内容 tab 回车 回tab 图片3 ...
分类:其他好文   时间:2014-05-31 06:03:29    阅读次数:314
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!