码迷,mamicode.com
首页 >  
搜索关键字:width    ( 32014个结果
Android 中 ViewFlipper 的简单实例
main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="...
分类:移动开发   时间:2015-06-15 09:19:29    阅读次数:189
CSS小知识---回到顶部
所需js文件 在body中添加 .gotoTop的style样式 .gotoTop { display: none; bottom: 20px; height: 70px; position: fixed; right: 20px; width: 70px; } js函数 $(function ()...
分类:Web程序   时间:2015-06-14 21:17:32    阅读次数:122
leetcode——Largest Rectangle in Histogram
原题 Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where...
分类:其他好文   时间:2015-06-14 18:36:43    阅读次数:102
html5学习 - canvas画图和清除图片
在canvas上画一张图其实很简单,就是用drawImgage函数。定义这里先贴上w3c里的定义和用法: JavaScript 语法 1 (在画布上定位图像:) context.drawImage(img,x,y); JavaScript 语法 2 (在画布上定位图像,并规定图像的宽度和高度:) context.drawImage(img,x,y,width,height); JavaScript...
分类:Web程序   时间:2015-06-14 13:47:39    阅读次数:475
css布局
流式布局display: inline | block |inline-blockblock独占一行默认宽度会填满父的宽度,可设width,height,padding,margin.block可以包含block,inline,inline只能包含inline,也有例外。inline同行显示直到宽度...
分类:Web程序   时间:2015-06-14 12:15:20    阅读次数:133
Swing-setBounds()用法-入门
先看API:publicvoidsetBounds(Rectangler)移动组件并调整其大小,使其符合新的有界矩形r。由r.x和r.y指定组件的新位置,由r.width和r.height指定组件的新大小参数:r-此组件的新的有界矩形从API来看,该方法的作用相当于setLocation()与set...
分类:Windows程序   时间:2015-06-14 12:11:08    阅读次数:7163
Android开发技巧一--weight属性实现视图的居中(半)显示
面试时,一位面试官问到:“如果我想讲按钮居中显示,并且占据其父视图宽度的一半,应该怎么做到呢?”即实现这种效果:我们使用weightSum属性和layout_weight属性实现这一要求: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill...
分类:移动开发   时间:2015-06-14 09:36:59    阅读次数:183
表格样式
1、表格常用样式属性 边距属性:padding 尺寸属性:width、height 设置表格或者单元格的尺寸 文本格式化属性 背景属性:设置表格或者单元格的颜色或者背景图像 border属性:设置表格的边框2、垂直方向对齐 vertical-align属性 在表单元格中,设置...
分类:其他好文   时间:2015-06-13 19:57:49    阅读次数:125
JS懒加载
4.如何使用js懒加载图片a.懒加载图片是基于jquery.js的,所以:b. 需要懒加载的图片,①.增加 data-original="图片真实地址"②.页面所有的img标签的src属性指向同一个图片(图片未加载时,显示的一张临时图)③.图片一定要设置 width 与 height //为什么?请...
分类:Web程序   时间:2015-06-13 18:36:01    阅读次数:132
如何在easyui datagrid 中显示外键的值
1、需要在角色列表显示角色类别的值,而角色类别是外键,关联数据字典,明细见下图:2、代码如下:columns: [[ { field: 'ck', checkbox: true, align: 'left', width: 20 }, ...
分类:其他好文   时间:2015-06-13 18:34:43    阅读次数:682
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!