显示效果:
红色的部分就是Badge,可以用来显示数量或者是其他的信息。
使用其实很简单, $.ui.updateBadge("#" + id, res.Msg, "tr");
第一个参数是需要显示的标签编号,第二个参数是需要显示的文字,第三个参数是需要显示的位置。
bl - bottom left
tl - top left
br - bottom ri...
分类:
移动开发 时间:
2014-06-20 13:10:33
阅读次数:
263
【题目】
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ 9 20
/ 15 7
return its b...
分类:
其他好文 时间:
2014-06-20 09:42:30
阅读次数:
224
1、将图片转换为块级对象
即,设置img为“display:block;”。在本例中添加一组CSS代码:“#sub img {display:block;}”。2、设置图片的垂直对齐方式
即设置图片的vertical-align属性为“top,text-top,bottom,text-botto.....
分类:
其他好文 时间:
2014-06-13 14:06:55
阅读次数:
276
//前台代码
p.a
{
margin-bottom: .0001pt;
text-align: justify;
text-justify: inter-ideograph;
text-in...
分类:
数据库 时间:
2014-06-07 16:18:51
阅读次数:
212
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find th...
分类:
其他好文 时间:
2014-06-07 13:45:25
阅读次数:
189
原题地址:https://oj.leetcode.com/problems/triangle/题意:Given
a triangle, find the minimum path sum from top to bottom. Each step you may move
to adjacent n...
分类:
编程语言 时间:
2014-06-06 17:31:34
阅读次数:
397
Legend, 翻译过来的意思是图例。
在Extjs 的Chart 中, 到底右边红色框起来的部分就是Legend 了。
在 Extjs Chart 的定义中, 可以通过配置 legend 的配置值(configs)来设置Legend 显示的位置和样式:
position 配置显示的位置:可以设置的值有 "top","bottom", "left", "right", or "float"。
其他还可以设置图例显示的文字、图的样式等等, 详细可以参见 Ext.chart.Legend 的参考文档。代...
分类:
Web程序 时间:
2014-06-04 22:49:05
阅读次数:
526
思路:在自定义shape中增加一层或多层,并错开,即可显示阴影效果。为增加立体感,按钮按下的时候,只设置一层。我们可以通过top, bottom, right 和 left 四个参数来控制阴影的方向和大小。关系图以下自定义两种阴影效果:res/drawable-hdpi/shadow1.xml
...
分类:
移动开发 时间:
2014-06-01 11:18:34
阅读次数:
320
效果如下:
页面如下:
ul, ol {
list-style: none outside none;
}
.nav-wrap {
width:100%;
height: 50px;
}
.float-navbar {
border-bottom: 1px solid #F3F3F3;
margin: 0;
padding: 0...
分类:
Web程序 时间:
2014-05-31 23:14:24
阅读次数:
619
body{ background-position:center;
background-repeat:no-repeat; }div#div1{ position:fixed; top:0; left:0; bottom:0;
right:0; z-i...
分类:
其他好文 时间:
2014-05-31 14:11:16
阅读次数:
243