码迷,mamicode.com
首页 >  
搜索关键字:height    ( 24230个结果
背景渐变
#head{width:200px; height: 200px; border: 1px solid #000; ?background: -moz-linear-gradient(top,red,yellow); ?background:-webkit-linear-gradient(top,red,yellow); ?background: -ms-linear-gradient...
分类:其他好文   时间:2015-01-30 17:54:39    阅读次数:95
绝对定位错乱
红色框框里的部分预期效果是想相对于图片定位,结果它相对于浏览器定位。这个部分的父元素有设置一个position:relateIve。 .navimgLeft{ height:480px;...
分类:其他好文   时间:2015-01-30 17:24:05    阅读次数:142
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 of the two subtrees of every node never diffe...
分类:其他好文   时间:2015-01-30 16:08:22    阅读次数:149
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. 解题思路:采用中序排列的方法递归地决定每个结点的数值; #include #include #include using namespace std; //Definition...
分类:其他好文   时间:2015-01-30 16:00:24    阅读次数:131
面向对象的拖拽
今天闲来没事写一个简单的面向对象的拖拽,然后在运用继承方法做一个限制大小的拖拽,好下面先写一个面向对象的拖拽。divclass{width:100px;height:100px;background:#ccc}mefunction Drag(id){ var _this = this; ...
分类:其他好文   时间:2015-01-30 15:19:31    阅读次数:200
【代码片段】遮罩层
$(function() { var h = $(document).height()+"px"; var w = $(document).width()+"px"; $('#t').css({ height:h,width:w}); }); 111111 转自...
分类:其他好文   时间:2015-01-30 15:18:02    阅读次数:127
Android 中 ListView Adapter getView 被多次调用问题 解决方法
执行多次原因是因为每显示一个VIew,它都去测量view的高度,执行measure方法,导致getView执行多次。解决方法是将 ListView 的 layout_width 设置为 fill_parent, 把width和height都设置成fill_parent,如果ListView有父布局....
分类:移动开发   时间:2015-01-30 15:13:47    阅读次数:209
【技术】搜索框(ie6下搜索图片在input框外)
父级div需定宽和高: .ui-search-wrap{ display: inline-block; position: relative; width: 164px; /*定宽*/ height: 24px; /*定高*/}.ui-search-wrap .ui-search{ h...
分类:其他好文   时间:2015-01-30 01:17:58    阅读次数:192
jquery 判断滚动条到达了底部和顶端的方法
这篇文章主要介绍了jquery 判断滚动条到达了底部和到达顶端的方法,需要的朋友可以参考下 复制代码 代码如下: $(document).height()  //是获取整个页面的高度 $(window).height()  //是获取当前也就是浏览器所能看到的页面的那部分的高度。这个大小在你缩放浏览器窗口大小时会改变,与document是不一样的 要获取顶端,只需要获取到s...
分类:Web程序   时间:2015-01-29 19:36:33    阅读次数:169
jquery操作html元素之( 尺寸)
jQuery 提供多个处理尺寸的重要方法:width()height()innerWidth()innerHeight()outerWidth()outerHeight()jQuery width() 和 height() 方法width() 方法设置或返回元素的宽度(不包括内边距、边框或外边距)。...
分类:Web程序   时间:2015-01-29 19:27:59    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!