码迷,mamicode.com
首页 >  
搜索关键字:left align    ( 14598个结果
[Jquery]焦点图轮播效果
$(function(){ var $next=$(".right"); var $prev=$(".left"); var $list_num=$(".list-num a"); var $banner=$(".banner"); var $list_banner=$(".list-banner"...
分类:Web程序   时间:2014-07-06 19:23:10    阅读次数:200
运动基础
运动基础示例:点击按钮,Div开始移动,当到达特定位置时,停止运动1,运动的要素是什么 比如 position:absolute; left:0px,改变left使其运动2,让“物体”持续性的运动,依靠什么 定时器 setInterval()3,停止的条件是什么 比如offsetLeft==300时...
分类:其他好文   时间:2014-07-06 18:24:28    阅读次数:216
Text Justification
Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) justified.You should p...
分类:其他好文   时间:2014-07-06 16:10:10    阅读次数:138
[Leetcode][BST][Convert Sorted Array to Binary Search Tree]
把一个排好序的vector转换为一颗二分查找树。很简单的题目,递归即可,保证边界不要出错。 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; ...
分类:其他好文   时间:2014-07-06 12:53:50    阅读次数:174
网页兼容网页宽度
IE6识别*和_,不识别!important IE7识别*,不识别_,识别!imortant 而firfox两个都不识别,识别!important  框架用990,非框架用1000 1、设了float:left的元素允许它的右边存在任何元素同行显示,不论是内联元素还是块元素。但它的左边还是不允许存在任何元素与之同行显示,哪怕其它的元素的代码在前,除非也给前面的元素加上float:l...
分类:Web程序   时间:2014-07-06 00:47:55    阅读次数:375
【剑指offer】Q6:重建二叉树
class BTNode: def __init__(self, val): self.left = None self.right = None self.val = val ''' @ construct tree by inorder & preorder ''' def constructByInPre(inorder, instart, inend, preorde...
分类:其他好文   时间:2014-07-06 00:34:00    阅读次数:234
[Leetcode][Tree][Sum Root to Leaf Numbers]
非常简单的一个题,和path sum非常类似。 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *rig...
分类:其他好文   时间:2014-07-05 22:03:48    阅读次数:251
二叉树
在计算机科学中,树是一种重要的非线性数据结构,直观地看,它是数据元素(在树中称为结点)按分支关系组织起来的结构。二叉树(Binary Tree)是每个节点最多有两个子树的有序树。通常子树被称作"左子树"(left subtree)和"右子树"(right subtree)。二叉树常被用于实现二叉查找树和二叉堆。值得注意的是,二叉树不是树的特殊情形。在图论中,二叉树是一个连通的无环图,并且每一个顶点的度不大于3。有根二叉树还要满足根结点的度不大于2。有了根结点后,每个顶点定义了唯一的根结点,和最多2个子结点。...
分类:其他好文   时间:2014-07-05 11:01:30    阅读次数:267
bootstarp modal自动调整宽度的JS代码
$('#ajaxPage').modal('show').css({ width: 'auto', 'margin-left': function () { return -($(this).width() / 2); ...
分类:Web程序   时间:2014-07-04 07:55:30    阅读次数:273
Leetcode Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:其他好文   时间:2014-07-03 23:51:47    阅读次数:408
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!