在过去的Web开发中,通常使用Photoshop来设计按钮的样式。不过随着CSS3技术的发展,你完全可以通过几行代码来定制一个漂亮的按钮,并且还可以呈现渐变、框阴影、文字阴影等效果。此类按钮最大的优势是省去了加载图片的步骤,并且非常易于编辑、扩展和定制,你只需要更改代码即可。本文收集了10套基于CS...
分类:
Web程序 时间:
2014-05-28 23:58:37
阅读次数:
718
问题:用以下代码为button绘制边框时,如button的height为1会导致button不显示(既没有边框,也没有button本身)。GradientDrawable
gradient = new GradientDrawable(Orientation.BOTTOM_TOP, new int[...
分类:
移动开发 时间:
2014-05-28 22:42:27
阅读次数:
508
jQuery Selector 是jQuery库中非常重要的一个组成部分。jQuery
Selector 用来选择某个HTML元素,其基本语句和CSS的选择器(Selector)是一样的,所有jQuery selector
都是以$()开始。选择HTML标记选择某个HTML元素的方法是直接使用该元素...
分类:
Web程序 时间:
2014-05-28 20:23:09
阅读次数:
378
学习jQuery之前需要你有下面几个方面的基本知识HTMLCSSJavaScriptjQuery 的基本语法$(selector).action()$
符合定义这是一个jQuery语句(selector) 用来选择某个HTML元素,其语法和CSS的selector语法一样。action() 定义操作...
分类:
Web程序 时间:
2014-05-28 19:47:10
阅读次数:
348
- (void)addTimer{ self.timer =
[NSTimerscheduledTimerWithTimeInterval:2.0target:selfselector:@selector(nextImage)
userInfo:nilrepeats:YES]; [[NSRunL.....
分类:
其他好文 时间:
2014-05-28 14:59:48
阅读次数:
231
一、基础准备 Imagebutton 继承
Imageview,就是用一个图标代表了一些文字,它没Android:text属性。它由Android:src指定图标的位置
android:src="@drawable/back" Button 继承 Textview,所以TextView的一些属性也适...
分类:
其他好文 时间:
2014-05-27 17:44:23
阅读次数:
256
在AbstractConfigurationProvider类中loadSources方法会将所有的source进行封装成SourceRunner放到了Map
sourceRunnerMap之中。相关代码如下: 1 Map selectorConfig = context.getSu...
分类:
其他好文 时间:
2014-05-27 15:57:09
阅读次数:
347
按option后会有提示:Do not use the label object to set
the text color or the shadow color. Instead, use the setTitleColor:forState: and
setTitleShadowColor:f...
分类:
其他好文 时间:
2014-05-26 18:47:48
阅读次数:
212
按钮(Button)与图片按钮(ImageButton)组件的功能和用法Button继承了TextView,ImageButton继承了Button。不管是Button还是ImageButton,他们的功能都很单一,主要是在UI界面生成一个按钮,该按钮可以供用户单击,当用户单击按钮后出发一个Oncl...
分类:
移动开发 时间:
2014-05-26 18:21:54
阅读次数:
371
//绑定图片点击事件 UITapGestureRecognizer
*g=[[UITapGestureRecognizeralloc]initWithTarget:selfaction:@selector(btnNext:)];
g.numberOfTapsRequired = 1; g....
分类:
其他好文 时间:
2014-05-26 17:55:08
阅读次数:
193