<style type="text/css">.a {
display:block;
width:158px;
height:56px;
color:#ffffff;
text-decoration:none;
vertical-align:middle;
background:url(images/rigmenu.gif) no-repeat 0 0;
}
.a:hover {
color:#ffffff;
background:url(images/_rigmenu.gif) no-repeat 0 2px;</style>
---------------------
<asp:DataList ID="myDataListFloor" runat="server" RepeatColumns="1" Enabled="False" Visible="False">
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td>
<a href="#"><%#Eval("SettingName")%></a>
</td></tr></table>
</ItemTemplate>
</asp:DataList>
=============
绑定的文字<%#Eval("SettingName")%>和背景图images/_rigmenu.gif纵向没有居中对齐,怎么改???
display:block;
width:158px;
height:56px;
color:#ffffff;
text-decoration:none;
vertical-align:middle;
background:url(images/rigmenu.gif) no-repeat 0 0;
}
.a:hover {
color:#ffffff;
background:url(images/_rigmenu.gif) no-repeat 0 2px;</style>
---------------------
<asp:DataList ID="myDataListFloor" runat="server" RepeatColumns="1" Enabled="False" Visible="False">
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td>
<a href="#"><%#Eval("SettingName")%></a>
</td></tr></table>
</ItemTemplate>
</asp:DataList>
=============
绑定的文字<%#Eval("SettingName")%>和背景图images/_rigmenu.gif纵向没有居中对齐,怎么改???
解决方案 »
- 如何让<TD>LabelText</TD>中的Label字符自动换行?
- 这两种写法有什么区别,为什么第一种在点button4的时候button1和button2没有变为可用.而要再点一次.
- 很急人的问题,怎样判断哪个TextBox1获得了焦点!
- .net和sybase的连接应该怎么写
- 在.NET中,如何使用webServices返回一个dataset,求例子
- javascript中移除事件
- 怎样实现两个页面间的互相控制?
- 为什么session的值传到另一页后变成两个了?
- 请问运行aspx程序时出现下面的错误,是什么原因引起的?
- windows form button 单机事件传递参数
- IIS网站建立快捷启动方式
- 怎么让repetear中的checkbox分页后任然保存选中状态
格试有误。。
background-repeat: no-repeat;