码迷,mamicode.com
首页 >  
搜索关键字:height    ( 24230个结果
css3 transform
New Document div{ margin: 30px 0px 80px; width: 200px; height: 50px; font-size: 18px; font-weight: bold; background: none repeat scroll 0% 0% #DEE4EE; color: #305999; text-align: center; line-heigh...
分类:Web程序   时间:2015-01-08 21:39:44    阅读次数:159
js在指定的table行后添加新行(js实现select数据的填充,添加行,删除行)
无标题文档         body{width:900px; height:600px;margin: 0px auto; }       body,ul,table,li,pre,dd,dt,tr,th,td,{padding:0px;border:0px; margin:0px;font-size: 14px;}       .container{text-align:center...
分类:Web程序   时间:2015-01-08 20:14:05    阅读次数:264
控制左边栏div高度自动改变 和右边div一样高
無標題文件 window.onload=function(){ document.getElementById("left").style.height = document.getElementById("right").offsetHeight+"px"; } 我是導航,我很短 我是內容,我很長 我是內容,我很長 ...
分类:其他好文   时间:2015-01-08 18:02:11    阅读次数:183
YV12转opencv IplImage
void Yv12ToImg(uchar *pin, IplImage* img) { uchar y, cb, cr; int ySize = img->width * img->height; int uSize = ySize / 4; uchar *pY = pin; uchar *pU = pY...
分类:其他好文   时间:2015-01-08 18:01:21    阅读次数:207
BZOJ 3831 POI 2014 Little Bird 单调队列DP
题目大意:给出一片树林,树排成一排,每一棵树都有一个高度。从地一棵树出发,每次可以跳到i+k棵之前,跳到小于自己高度的树上不需要花费体力,反之需要花费一点体力,问到最后一棵树最少需要多少体力。 思路:简单DP方程:f[i] = min{f[j] + (height[i] >= height[j])} 然后发现数据范围只有O(n)可以过。 维护单调队列,队列中按照f单调递减,队尾按照时...
分类:其他好文   时间:2015-01-08 15:24:58    阅读次数:128
滚动条自动滚到底
设置页面加载时滚动条自动滚到底的方法:jQuery:$(function(){ var h = $(document).height()-$(window).height(); $(document).scrollTop(h);});JavaScript:window.onload = functi...
分类:其他好文   时间:2015-01-08 13:16:22    阅读次数:124
leetcode----------Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:其他好文   时间:2015-01-08 12:57:43    阅读次数:171
[LeetCode#108]Convert Sorted Array to Binary Search Tree
The problem:Given an array where elements are sorted in ascending order, convert it to a height balanced BST.My analysis:The recursion is the best way...
分类:其他好文   时间:2015-01-08 00:49:30    阅读次数:265
自学篇之--js 提取复选框和单选框的值 和纯css的3D按钮
<html> <head> <meta charset="utf-8" content="text/htnl"> <title>button</title> <style type="text/css"> a.button{ position:relative; width: 80px; height: 50px; background-color: red; display: block;...
分类:Web程序   时间:2015-01-07 19:20:13    阅读次数:213
Android图片缩放 指定尺寸
//使用Bitmap加Matrix来缩放 public static Drawable resizeImage(Bitmap bitmap, int w, int h) { Bitmap BitmapOrg = bitmap; int width = BitmapOrg.getWidth(); int height = ...
分类:移动开发   时间:2015-01-07 18:51:51    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!