ASP.NET 用VS2005比如imageButton 如何添加文字属性,比如文字在下方,在左右边,其实就是图片+文字的按钮

2024-12-19 01:36:33
推荐回答(1个)
回答1:

邮箱给我可以给你发个例子我邮箱是arthurguo88@hotmail.com
其实这好写, 用一个linkbutton
Submit

-----------------------------------css
a.button
{

background: transparent url('/Images/CssSlideButtonEnd.png') no-repeat scroll top right;
color: #fff;
display: block;
float: right;
font: normal 14px arial, sans-serif;
font-weight: bold;
height: 35px;
margin-right: 6px;
padding-right: 18px; /* sliding doors padding */
text-decoration: none;
}

a.button span
{
background: transparent url('/Images/CssSlideButton.png') no-repeat;
display: block;
line-height: 25px;
padding: 5px 0 5px 18px;
}

a.button:hover
{
background-position: bottom right;
color: #fff;
outline: none; /* hide dotted outline in Firefox */
text-decoration:none;
}

a.button:hover span
{
background-position: bottom left;
padding: 6px 0 4px 18px; /* push text down 1px */
}
--------------------------------------------------------------------------