1 window.onload=function(){ 2 var box=document.getElementById("box"); 3 //alert(box.offsetTop); //margin:20px; 4 //alert(box.offsetParen...
分类:
其他好文 时间:
2015-06-10 14:01:21
阅读次数:
108
简要介绍, 默认居左, Tab不定宽, “标题”和“更多”可删, 扩展类可以自由组合, 依赖于reset.css(之前的模块以及布局都依赖这个css)那么这个效果是怎么实现的呢?CSS代码:.container { width:800px; margin:45px auto;}.m-hd...
分类:
其他好文 时间:
2015-06-10 13:43:32
阅读次数:
97
格式化不换行 setting-->File-->Code Style-->java -->Wrapping and ?Braces ?-->line ?breaks ?不打钩(大屏) 屏幕中间的线长度 ? setting-->File-->Code Style-->Right margin ? 修改默认Activity模版不...
分类:
移动开发 时间:
2015-06-09 17:53:31
阅读次数:
266
xml文件<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:paddingLeft="@dimen/activity_horizontal_margin"an..
分类:
其他好文 时间:
2015-06-09 14:13:45
阅读次数:
194
Css 外边距折叠(collapsed margins) (margin collapse) collapsing margins
分类:
Web程序 时间:
2015-06-09 13:42:03
阅读次数:
134
1、被重定向到新的地址(5 秒内): 2、margin:上 右 下 左3、overflow 属性规定当内容溢出元素框时发生的事情。包括自动换行、滚动栏等
分类:
其他好文 时间:
2015-06-09 13:11:04
阅读次数:
114
1 ie6.0横向margin加倍产生因素:块属性、float、有横向margin。解决方法:display:inline;2 ie6.0下默认有行高解决方法:overflow:hidden;或font-size:0;或line-height:xx px;3 在各个浏览器下img有空隙(原因是:回车...
分类:
其他好文 时间:
2015-06-09 11:22:53
阅读次数:
95
背景:html中的div可以说是布局神器,但是有些时候没有那种一步到位的属性来定义某个div来居中。故需要手动写css来调试代码(code):让层垂直居中于浏览器窗口 其实解决的思路是这样的:首们需要position:absolute;绝对定位。而层的定位点,使用外补丁margin负值的方法。负值的...
分类:
Web程序 时间:
2015-06-09 11:20:04
阅读次数:
153
最近在看html5时看到的一个有意思的拖放效果,这里是简单的一个拖放删除元素的效果。
拖放操作
li{ list-style:none;width:100px; height: 100px; background: red; margin-bottom:20px;}
#div1{ width:200px; h...
分类:
Web程序 时间:
2015-06-09 09:59:55
阅读次数:
93
使用css3的-webkit-column可以实现类似瀑布流的页面效果(仅限于Chrome内核)下面给出例子: 1 2 3 4 5css部分代码:.clolumn{ width: 600px; margin: 10px auto; ...
分类:
Web程序 时间:
2015-06-08 19:06:16
阅读次数:
91