- (void)yourButtonTitleTime{ __block int timeout=30; //倒计时时间 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);.....
分类:
其他好文 时间:
2014-06-26 00:43:27
阅读次数:
305
When you were dragging in your label and your button to this view, you were adding them as subviews.By doing this programmatically you can see what go...
分类:
其他好文 时间:
2014-06-25 20:56:07
阅读次数:
521
note:在html 标签类中的checkbox实现单选效果。在最近的开发项目中,客户要求使用小方格子实现“单选”功能,显然圆点的radio被out了,只能选择chckbox的方块样式,也在网上搜过,可能有点儿脑残,没有找到。废话不多说直接上代码: checkbox实现单选效...
分类:
Web程序 时间:
2014-06-25 19:14:51
阅读次数:
258
写 1 private void Button_Click_1(object sender, RoutedEventArgs e) 2 { 3 IsolatedStorageFile isf = IsolatedStorageFile.GetUserSto...
分类:
Web程序 时间:
2014-06-24 23:37:43
阅读次数:
224
MainActivity如下:
package cc.cc;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.app.Activity;
import andro...
分类:
其他好文 时间:
2014-06-24 19:26:31
阅读次数:
169
效果:想看实例的,感兴趣的能够看之前的一篇文章Android ViewPager Fragment实现选项卡部分关键代码:public class SerializeActivity extends Activity implements Serializable { Button btnlist,...
分类:
移动开发 时间:
2014-06-24 14:50:59
阅读次数:
261
获取某个元素上的事件,jquery的给元素绑定的事件可以用data方法取出来.通过$(element).data("events")来获取// 比如给一个button绑定两个click事件$("button").click(function() { alert("1") });$("button")...
分类:
Web程序 时间:
2014-06-24 11:26:51
阅读次数:
276
很老的问题了,如今再次碰到,记录下来,给后来者方便!众所周知,在Firefox下input type=”button”的文字是不好居中的,原因在于Firefox自己比较二,弄了个私有属性,导致以下问题的出现:按钮左右本身有2px的间距(FF私有属性写了padding:0 2px所致);按钮文字居中是...
分类:
其他好文 时间:
2014-06-22 13:26:42
阅读次数:
201
在实际应用中,考虑到seo,很多button,icon都要用到inline-block和text-indent来处理,例如:Buttoncss我习惯写成这样.btn{display:inline-block; width:100px; height:23px; text-indent:-9999px...
分类:
其他好文 时间:
2014-06-22 12:56:49
阅读次数:
204
点击监听器接口:onClickListener抽象函数onClick(Viewv)有2个方法实现监听:1:当前类继承点击监听器接口packagecom.example.button;importandroid.app.Activity;importandroid.os.Bundle;importandroid.view.Menu;importandroid.view.View;importandroid.view.View.OnClickLi..
分类:
移动开发 时间:
2014-06-21 19:24:32
阅读次数:
267