【发布时间】:2011-04-22 05:03:13
【问题描述】:
<img src ="~/UserControls/Vote/Images/Arrow Up.png" id = "vote-up-off"
runat = "server" alt ="vote up"
class="voteupImage" style="height: 45px; width: 44px"/>
这里我想为某些条件更改图像的 src,例如
if ( a==4)
{
src url shuld be ......
}
else
{
src url should be...
}
【问题讨论】:
-
我假设您正在使用 Webforms - 我重新标记以反映这一点