实现如下需求
在输入框左侧有一个小图标提示(比如账号左侧一个人的提示,密码左侧有一个锁的提示)
直接上代码
userName=[[UITextField alloc]initWithFrame:CGRectMake(10, SCREEN_HEIGHT*0.3, SCREEN_WIDTH-20, 36)];
userName.placeholder=@"...
分类:
其他好文 时间:
2015-06-26 15:00:46
阅读次数:
104
直接说问题吧:以上是html代码,就是俩input单纯的控制样式: input[type='text']{ width: 460px; height: 30px; border: 2px solid #FF4E88;}input[type='submit']{ height:...
分类:
其他好文 时间:
2015-06-26 12:44:57
阅读次数:
97
css代码:.new-contentarea { width: 100%; overflow:hidden; margin: 0 auto; position:relative;}.new-contentarea label { width:100%; height:100%; display:bl...
分类:
Web程序 时间:
2015-06-26 10:50:42
阅读次数:
147
img { max-width: 800px; height: auto; } 代码中的max-width:800px限制图片的最大宽度为800像素,而下面的hight:auto很关键,可以保证图片有正确的长宽比,不至于因为被调整宽度而变形。实用例子(未经测试—————————————————...
分类:
Web程序 时间:
2015-06-26 01:43:35
阅读次数:
183
xml文件代码部分<LinearLayoutxmlns: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:orientation="vertical"
>
<Image..
分类:
移动开发 时间:
2015-06-25 21:23:55
阅读次数:
170
样例:代码:html: 我是一个tooltipcss:.tips { width: 200px; height: 50px; line-height: 50px; text-align: center; position: relative; margin: 20px auto; ...
分类:
Web程序 时间:
2015-06-25 20:51:13
阅读次数:
152
ZendStudio中格式化HTML快捷键:Ctrl+Shift+F为什么html文件里面的内容格式化完都乱套了?选 择window菜单->Preferences->Web->HTML FIles->Editor。把Line width设置长一些,可以设置成800(默认的是72)钩上”Clear a...
分类:
Web程序 时间:
2015-06-25 19:32:01
阅读次数:
144
a Rim Jim Sim Nim 以上是html的代码部分,将图片至于div容器中。热点用无序列表嵌套标签的形式。.imagemap{ margin-top:2em; width:496px; height:382px; position:relative;/*KEY*/}.im...
分类:
Web程序 时间:
2015-06-25 19:25:10
阅读次数:
100
1,titlebar button + textview实现 在layout文件夹内创建titlebar.xml文件 创建一个水平linearlayout ,将button与text放进去,根绝上一节的 自适应特性 设置 layout-width 与layout-height 值...
分类:
移动开发 时间:
2015-06-25 19:04:24
阅读次数:
259
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" ...
分类:
其他好文 时间:
2015-06-25 17:35:24
阅读次数:
115