@IBAction func buttonClick_LabelCtrl(sender: AnyObject) {//定义CGRect来初始化UILable var frame: CGRect = CGRect(x: 50, y: 50, width: 200, height: 200) ...
分类:
编程语言 时间:
2015-04-26 10:40:14
阅读次数:
144
view:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_...
分类:
其他好文 时间:
2015-04-26 09:33:14
阅读次数:
155
我们知道 div是块级元素,是独占一行的.一般情况下,两个相邻的div是不会处于一行的
例如:
让两个div处于同一行
<div style="height: 40px;width: 80px;bac...
分类:
其他好文 时间:
2015-04-25 22:50:35
阅读次数:
134
html显示图片1.最简单: 2.如果要改变图片显示的尺寸 注意:只需要设置width就可以了,然后图片会按比例的自动缩放的,不必自己去计算长宽比3.鼠标移到图片上显示的小提示 注意:使用的是img标签的 alt属性
分类:
Web程序 时间:
2015-04-25 22:21:41
阅读次数:
177
CSS border原理一个div或者元素的border并不是我们直观意义上的一条有高度的线,而是一个等高梯形或者三角形(宽高为0时),可以看一下效果:HTML:CSS:.arrow1{ font-size:0; /*默认有高度会撑开,这里清楚高度*/ width:0; height:0; bord...
分类:
Web程序 时间:
2015-04-25 16:37:39
阅读次数:
137
实例:http://www.lcefox.com.cn//page/single/mousemove/
scrollLeft,平时我们是比较少使用的 不过不常使用不代表就不能用,其实运动 得当能够省去很多代码
*{margin:0;padding:0;}
html,body{width...
分类:
移动开发 时间:
2015-04-25 15:10:14
阅读次数:
143
源代码:
微博效果
*{
margin:0;
padding:0;
}
#txt{
color:#090;
}
#oul{
width:700px;
height:500px;
display:block;
border:1px solid #000;
position:relative;
left:700px;
overflow:hidden;...
分类:
其他好文 时间:
2015-04-25 15:09:14
阅读次数:
132
cssText文本格式化与熟悉操作:一般我们用元素.style去改元素的样式的时候,都等同于添加行间样式,这样优先级也比较高;还有一种方式就是使用cssText,它等同于将原来的样式覆盖掉;oDiv.style.cssText='width:100px; height:100px';这里面的样式写法...
分类:
Web程序 时间:
2015-04-24 23:54:42
阅读次数:
179
jQuery中的width()、innerWidth()、outerWidth()、outerWidth(true)和height()、innerHeight()、outerHeight()、outerHeight(true)方法的区别相信有些刚开始接触jquery的友友们,对这几个方法的区别总是模棱两可,似乎清楚似乎有是一个模糊的概念,下面是我自己整理的一张图,..
分类:
Web程序 时间:
2015-04-24 19:26:56
阅读次数:
228
avtivity_cehua.xml
<android.support.v4.widget.DrawerLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer"
android:layout_width="match_parent"
android:layout_height="matc..
分类:
移动开发 时间:
2015-04-24 19:25:03
阅读次数:
159