实现效果:
在布局中声明spinner
<Spinner
android:id="@+id/sp_kc_term"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:animationCache="t...
分类:
其他好文 时间:
2014-11-27 14:31:48
阅读次数:
256
WindowManager.LayoutParams wlp = new WindowManager.LayoutParams(width, height, WindowManager.LayoutParams.TYPE_SYSTEM_ERROR, ...
文本输入框默认在谷歌,火狐浏览器中,光标是居中显示的。但在IE7中一开始会在顶部闪烁(输入文字后光标居中),加上行高就可以,值为文本框的高度。注意要加*号,否则在谷歌浏览其中光标会在顶部闪烁。*line-height: 24px;
分类:
其他好文 时间:
2014-11-27 14:17:46
阅读次数:
200
<!doctypehtml>
<htmllang="en">
<head>
<metacharset="UTF-8">
<title>富文本编辑,采用iframe嵌入的方法</title>
</head>
<body>
<iframename="richedit"style="height:200px;width:300px;"src="blank.html"></ifr..
分类:
编程语言 时间:
2014-11-27 12:56:44
阅读次数:
213
前一篇中实现element全屏方案只适合单一的元素(元素里面不包含其他元素),但是如果里面有其他的元素呢?比如按钮之类的。如下图:
加上-webkit-full-screen{ width: 100%; height: 100%; } 之后全屏显示就变成:
1,button使用left和top来定位(左图)。如果用bottom和right来定位(右图)
我们会发现elemen...
分类:
其他好文 时间:
2014-11-27 12:45:55
阅读次数:
289
基本公式:末项=首项+(项数-1)×公差项数=(末项-首项)÷公差+1首项=末项-(项数-1)×公差和=(首项+末项)×项数÷2末项:最后一位数首项:第一位数项数:一共有几位数和:求一共数的总和
分类:
其他好文 时间:
2014-11-27 12:33:47
阅读次数:
153
浏览器的盒子模型分为两类,一类为标准的w3c盒子模型,另一类为IE盒子模型,两者区别为在Width和Height这两个属性值中是否包含padding和border的值,w3c盒子模型不包含,IE盒子模型则包含,而在jQuery 中,可以通过$.support.boxModel对象返回的值,检测浏览器...
分类:
Web程序 时间:
2014-11-27 10:30:22
阅读次数:
183
<?xml?version="1.0"?encoding="utf-8"?>
<LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android"
????android:layout_width="match_parent"
????android:layout_height="40dp"
...
分类:
微信 时间:
2014-11-26 21:03:49
阅读次数:
407
RotateMenu说明
最终效果图
下面这个引用自乱斗西游
设计说明
1.菜单项(MenuItem)平均分布在椭圆(类似)上
2.椭圆长轴为2/3width,短轴为2/8 height
3.最前面的菜单项Scale=1,opacity=255,最后面Scale=0.5,opacity=129.其它位置根据三角函数变换(updatePosition中实现)
4.默认最前...
分类:
其他好文 时间:
2014-11-26 21:01:54
阅读次数:
292
var $a = $("a");var topValue = $("#four-choices").offset().top * 1.5 + ($("two-wide-cols").height());var prevTarget = "#tabletop";$(document).ready(f....
分类:
其他好文 时间:
2014-11-26 20:26:59
阅读次数:
177