码迷,mamicode.com
首页 >  
搜索关键字:container    ( 5967个结果
DataGrid前台数据绑定技巧
(1)DataGrid控件不换行,数据显示不完全后面加"..."15? DataBinder.Eval(Container.DataItem,"content").ToString().Substring(0,15) + "...": ...
分类:其他好文   时间:2014-09-02 15:24:34    阅读次数:184
【ExtJS】 布局Layout
布局用于定义容器如何组织内部子元素和控制子元素的大小。 ExtJS中有两种类型的布局:Container容器类布局与Component组件类布局。 Containter容器类布局:负责容器内容Extjs元素和调整Extjs元素的大小。 包括:Border布局、Box布局、Fit布局等等...
分类:Web程序   时间:2014-09-01 00:13:42    阅读次数:391
CSS实现宽高成比例缩放
用js实现一个宽度自适应,高度随着宽度变化而变化的矩形,相信大家肯定都会。无非是js获取一下元素宽度,然后再计算出相应比例的高度,然后赋给元素,但如果要求只用CSS实现呢。 html代码如下, content css代码如下,.container{ backgroun...
分类:Web程序   时间:2014-08-31 21:23:41    阅读次数:346
动画 -- 点击按钮
1 @Override 2 public View onCreateView(LayoutInflater inflater, ViewGroup container, 3 Bundle savedInstanceState) { 4 View rootView = inf...
分类:其他好文   时间:2014-08-31 21:20:31    阅读次数:257
STL之vector,数组线性容器array,list容器,算法find,find_if,bind1st,仿函数
1.STL(Standard Template Library,是用泛型技术来设计完成的实例)的概念与组成 Iterator(迭代器) Container(容器) Algorithm(算法) Adaptors(配接器)   STL的六大组件分别是: 容器(Container) 算法(Algorithm) 迭代器(Iterator)...
分类:其他好文   时间:2014-08-30 23:08:50    阅读次数:226
Leetcode 贪心 container with most water
题意:二维坐标系里有 n 个点 (i, ai), ai >= 0,从 (i, ai)到(i, 0)划竖线,共有 n 条竖线。 找出两条竖线,使得它们构成的矩形的面积最大,矩形的高取决于最短的竖线。 思路:贪心 从首尾两个下标head 和trail 处开始扫描,用一个变量 maxArea 保持当前最大的矩形面积。 如果head 指向的竖线短于 trail 的,则右移 head 否则左移 trail 计算面积,更新 maxArea 复杂度:时间O(n),空间O(1) int maxArea(vector<in...
分类:其他好文   时间:2014-08-30 16:27:49    阅读次数:223
css+html简单布局demo
在html中引入css样式,可以改变html的块布局方式,使得界面的布局更加美观。接下来看一个基础布局的小例子:         margin布局 #container{ width: 1002px; background: gray; } #header{ height: 120px; background: orange; }...
分类:Web程序   时间:2014-08-28 14:54:49    阅读次数:273
vector-向量
向量vector:vector类型是以容器(Container)模式为基准设计的,也就是说,基本有begin(),end(),size(),max_size(),empty()以及swap()这几个方法。1、访问元素的方法:vec[i]-访问索引值为i的元素引用。(索引值从零起算,故第一个元素是vec[0]。)vec.at(i)-访问索引值为i..
分类:其他好文   时间:2014-08-27 18:55:39    阅读次数:211
【中英对照】【EntLib6】【Unity】实验1:使用一个Unity容器
Lab 1: Using a Unity Container 实验1:使用一个Unity容器Estimated time to complete this lab: 15 minutes 估计完成时间:15分钟 Introduction 介绍In this lab, you will practic...
分类:其他好文   时间:2014-08-27 18:16:38    阅读次数:490
easyui datagrid 自定义editor
1 $.extend($.fn.datagrid.defaults.editors, { 2 mycombogrid: { 3 init: function (container, options) { 4 var inp...
分类:其他好文   时间:2014-08-27 16:04:57    阅读次数:369
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!