码迷,mamicode.com
首页 >  
搜索关键字:left align    ( 14598个结果
CSS 选择器
ID 选择器:#green {color:green;}是绿色的。ID 选择器 + 派生选择器:#table1 td { text-align: right; font-style: normal; color: blue; }#table1 tr { color: #...
分类:Web程序   时间:2014-06-28 12:59:30    阅读次数:208
元素水平居中和垂直居中的几种简单方法
一、如何使元素在水平方向上居中1.使用text-align:center。在父级元素的CSS样式设置text-align:center。把内部嵌套一个div把它当作文本来对待,不过这个方法有时候是不管用的。2.在需要居中的元素设置margin:0 auto。这句CSS的意思为:设置margin-le...
分类:其他好文   时间:2014-06-25 22:16:20    阅读次数:305
LeetCode Validate Binary Search Tree
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:其他好文   时间:2014-06-24 13:40:33    阅读次数:214
LeetCode Balanced Binary Tree
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:其他好文   时间:2014-06-24 13:32:40    阅读次数:157
手机页面目录菜单拉进拉出效果小结
之前用的代码是left:-100%;-webkit-transition:all 5s ease;->left:0;测试部分浏览器效果还是不错的,但是还有另外一部分浏览器无敌卡。经同事提点,换了另外一种方式-webkit-transform:translateX(-100%);-webkit-tra...
分类:移动开发   时间:2014-06-24 10:08:04    阅读次数:276
Leetcode:Minimum Path Sum 矩形网格最小路径和
Minimum Path Sum:Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along...
分类:其他好文   时间:2014-06-22 23:06:39    阅读次数:290
html/css入门第一篇
1.基本教程学习 大概三天业余时间看完下面两个教程。 HTML文字教程 CSS文字教程 2.练习 看完教程后,做第一练习时,总结如下: 1)div居中 需要设置属性:margin-left:auto; margin-right:auto; 2) 给图片加链接后,图片有边框,消除边框方法:给图片设置属性 border-width:0px; 3)图片相连时,图片间有距离,消除...
分类:Web程序   时间:2014-06-22 17:02:52    阅读次数:253
poj1942 Paths on a Grid 【排列组合】
关于这个题想说一下,刚开始准备按照有一个含有n个数的非递减序列,每个数最大值为m,数字可以重复,有多少种这样的序列,像是一个蛮复杂的排列组合 其实这道题,从left bottom到right up只能向右或者向上,也就是m+n个格子里面取m个格子写右,n个格子写上,就成了个很2的排列组合问题 值得强调的是,这个题求组合数是用分数相乘来求的,怕double丢精度可以末尾+0.5然后转化为long...
分类:其他好文   时间:2014-06-22 16:53:21    阅读次数:135
POJ-1068 Parencodings
Description Let S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways:  q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses...
分类:其他好文   时间:2014-06-22 14:06:49    阅读次数:249
趣味问答
SELECT a.id,b.name FROM tab1 AS a LEFT JOIN tab2 AS b ON(a.id = p.id) WHERE a.id > 10以上sql返回的结果中name列也许会出现 null 的情况,那么在name字段上使用什么函数可以将出现的 null 改为一个默认...
分类:其他好文   时间:2014-06-21 14:27:50    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!