码迷,mamicode.com
首页 >  
搜索关键字:height    ( 24230个结果
css3 html5 3D动画练习
New Document div{ margin-bottom:10px; width:200px; height:100px; } @keyframes myfirst { from {background: red;} to {background: yellow;} } @-moz-keyframes myfirst /* Firefox */ { from {background:...
分类:Web程序   时间:2015-01-10 11:19:52    阅读次数:232
[BZOJ 3238] [AHOI 2013] 差异
题目链接:BZOJ - 3238题目分析显然,这道题就是求任意两个后缀之间的LCP的和,这与后缀数组的联系十分明显。求出后缀数组后,求出字典序相邻两个后缀的LCP,即 Height 数组。那么我们可以用这个 Height 数组求出所有后缀之间 LCP 的和。我们用 f[i] 表示字典序第 i 的后缀...
分类:其他好文   时间:2015-01-10 11:13:55    阅读次数:214
[LeetCode#110, 112, 113]Balanced Binary Tree, Path Sum, Path Sum II
Problem 1 [Balanced Binary Tree]Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as ...
分类:其他好文   时间:2015-01-10 06:36:11    阅读次数:290
从源码角度分析LayoutInflater 的inflate
大家inflate应该用的比较多吧,尤其在使用listview 的时候。 先来看看item的布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="20...
分类:其他好文   时间:2015-01-10 01:28:38    阅读次数:229
让页面底部浮动起来固定起来
?? 1、获取屏幕高度, 2、获取页面高度。 3、判断两者之间的的大小。当页面高度大于屏幕高度时就不添加浮动到底布的样式。否则就添加。不去判断是否滚动屏幕。 获取屏幕高度$(window).height();$(document).height(); 浮动到底布: .footer{ position:fixed; width:100%; display:block; botto...
分类:其他好文   时间:2015-01-09 23:48:18    阅读次数:254
02.[WPF]如何固定窗口的大小
在WPF开发过程中碰到一个需求,要求保证窗口大小不变,即便是双击 titlebar 也不能改变窗口大小和位置。要实现这样的效果,需要执行如下步骤:1,分别设置窗口的 Width/MaxWidth/MinWidth, Height/MaxHeight/MinHeight的为相同的值,设置窗口的 Res...
分类:Windows程序   时间:2015-01-09 23:46:03    阅读次数:320
Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST....
分类:其他好文   时间:2015-01-09 22:29:55    阅读次数:181
Bullet(Cocos2dx)之创建地形
Bullet提供了几个类btBvhTriangleMeshShape,btHeightfieldTerrainShape去创建一些网格图形,首先了解btHeightfieldTerrainShape,通过高度图数据创建一个3D地形。 A static mesh that is optimised for and described by the surface of a height map....
分类:其他好文   时间:2015-01-09 20:59:17    阅读次数:297
android布局采用include 统一管理布局
通常的在一个项目中会有顶部标题栏 和 底部导航栏。而且这些东西在很多个界面都有使用。 我们采用include 来进行布局的重用。 include标签常用于将布局中的公共部分提取出来供其他layout共用,以实现布局模块化。 标签可以使用单独的layout属性,前提是必须给其设置 android:layout_width 和 android:layout_height 两个属性。否则没效果...
分类:移动开发   时间:2015-01-09 19:27:45    阅读次数:213
自写简单弹出框
今天下午没事,就想起自己要写个弹出框试试。首先在网上搜了哈加上了自己的一些想法,结果达到了自己预想的结果。实现原理:1、在页面中创建一个div。2、将此div的position设置为absolute,并设置其left、top、width、height属性。3、设置此div的z-index为一个较大值...
分类:其他好文   时间:2015-01-09 19:06:05    阅读次数:140
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!