RadioButtonList控件绑定图片Vertical对齐
来源:互联网 发布:数控铣床卡通图案编程 编辑:程序博客网 时间:2024/05/16 11:51
数据源来自:http://www.cnblogs.com/insus/archive/2013/02/03/2890852.html 今天再去微软网站下载哪些图片时,发现windows的图标颜色变了。
现在的问题是,在这些图片绑定至RadioButtonList控件时,图片应该是Vertical对齐。
还是先来看看前一帖在浏览时,它的html源代码:
上图高亮部位的代码,就是每个选项产生的代码,有它有一个input标签,type为Radio,一个Label标签和Label标签内还有一个img标签组成。根据这些特征,我们在网页写一个样式style:
<style type="text/css"> input[type="radio"], input[type="radio"] + label img { vertical-align: middle; } </style>
好的,我们再来浏览一次,不过在RadioButtonList添加两个属性,让其横排显示。
RepeatColumns="5" RepeatDirection="Horizontal"
效果图:
<script type="text/javascript"><!--google_ad_client = "ca-pub-1944176156128447";/* cnblogs 首页横幅 */google_ad_slot = "5419468456";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- RadioButtonList控件绑定图片Vertical对齐
- RadioButtonList绑定图片
- RadioButtonList绑定图片 常用属性
- CheckBoxList和RadioButtonList控件的绑定
- DataSet绑定ListBox、DropDownList、RadioButtonList、CheckBoxList控件
- RadioButtonList控件绑定数据时设定默认值
- DataSet绑定ListBox、DropDownList、RadioButtonList、CheckBoxList控件
- 绑定RadioButtonList
- 使用复杂绑定完成 CheckBoxList 和 RadioButtonList 控件的绑定
- 使用复杂绑定完成 CheckBoxList 和 RadioButtonList 控件的绑定
- RadioButtonList控件
- RadioButtonList控件
- 图片和文字对齐设置微调vertical-align
- Input输入框与图片对齐属性vertical-align:bottom
- RadioButtonList绑定数据库
- ImageView控件-绑定图片
- radiobuttonlist控件使用
- 关于RadioButtonList控件
- How cursors work
- 浏览器的工作原理:新式网络浏览器幕后揭秘
- mysql 给表添加唯一约束、联合唯一约束,指定唯一约束的名字
- Objective-C中的@property,@synthesize和点语法
- mini2440 RTC移植
- RadioButtonList控件绑定图片Vertical对齐
- 牛人主页(主页有很多论文代码)
- NVelocity介绍
- ubuntu上Android NDK调试配置
- 软件工程——数据流图
- .NET 数据类型之匿名类型(var)
- 程序优化c++ 摘2
- Why does JAXB put @XmlRootElement sometimes but not always
- 利用泛型和反射编写通用基础类型转换方法