margin transfer 上面的代码表示一个灰色背景的outer嵌套了一个红色背景的inner,按照正常的思维,inner的顶部和outer的顶部有30px的距离,但实际上并未如此,inner的顶部和outer的顶部重合,而ou...
分类:
其他好文 时间:
2015-01-22 21:28:28
阅读次数:
187
1.anroid:id的作用?android:id是作为控件的唯一标示符。可以使用与releativelayout中,也可以再Activity中通过findviewbyid来获得指定的控件。2.android:padding 和android:layout_margin的区别。padding是内部,...
分类:
移动开发 时间:
2015-01-22 19:41:31
阅读次数:
138
<!DOCTYPEHTML><html><head><metacharset="utf-8"/> <title>导航条</title> <style> *{ margin:0; padding:0; list-style:none; } ul{ width:960px; margin:0auto; background:orange; overflow:hidden; ..
分类:
编程语言 时间:
2015-01-22 15:54:19
阅读次数:
189
前提 只有在普通文档流中垂直相邻外边距会合并。 行内框,浮动框或者绝对定位之间的外边距不会合并。1.相邻元素有多个外边距1 2 line 13 line 24 5 This is h3 line.1 ul{margin-bottom:15px;}2 li{margin-top:...
分类:
其他好文 时间:
2015-01-21 17:55:17
阅读次数:
132
乘以包含块的宽度margin,padding,left,right,text-indent,width,max-width,min-width乘以包含块的高度top,bottom,height,max-height,min-height关于包含块(containing block)的概念,不能简单地...
分类:
Web程序 时间:
2015-01-20 21:57:28
阅读次数:
234
浏览器兼容问题一:不同浏览器的标签默认的外补丁和内补丁不同 问题症状:随便写几个标签,不加样式控制的情况下,各自的margin 和padding差异较大。 碰到频率:100% 解决方案:css里 *{margin:0;padding:0;} 备注:这个是最常见的也是最易解决的一个浏览器兼容...
分类:
其他好文 时间:
2015-01-20 17:01:58
阅读次数:
142
1.位置属性(position, top, right, z-index, display, float等)2.大小(width, height, padding, margin)3.文字系列(font, line-height, letter-spacing, color- text-align等...
分类:
Web程序 时间:
2015-01-20 15:38:00
阅读次数:
119
不同的ItemVeiwType中返回的值必须是从0开始的!!!!!不能自定义值,否则会发生不可预知的情况。即值是从0到ItemViewCount-1。
LayoutParams中设置margin等参数时,是根据外层Layout来决定LayoutParams的类型的.
如果AbsListView的子控件需要设置LayoutParams,比如footerView 等,可以在...
分类:
移动开发 时间:
2015-01-19 23:40:21
阅读次数:
388
body p | This is a test of the text block.This is a test of the text block.body p | This line is on the left margin. This line will...
分类:
Web程序 时间:
2015-01-19 18:56:52
阅读次数:
662
margin-left为定值10px,width和margin-right都是auto。此时设置为auto的外边距会减为0,width值为150-10=140px。
分类:
其他好文 时间:
2015-01-19 17:07:36
阅读次数:
121