當前位置:編程學習大全網 - 電腦編程 - asp.net 怎麽做壹個帶圖片和文字的button

asp.net 怎麽做壹個帶圖片和文字的button

<asp:ImageButton?ID="btnSubmit"? runat="server"?ImageUrl="/img/baidu_sylogo1.gif&quot;/>?效果?

妳可以定義寬高,和圖片url。或者直接用

<asp:Button?ID="btnLogin"?runat="server"?Text="?登錄?" CssClass="btn_5"?/>?寫在樣式裏邊

.btn_b1{width:155px;height:90px;line-height:60px;border:0px;font-size:14px;text-align:center;color:#fff;background:url(../images/btn_b1.png)?no-repeat;cursor:pointer;display:inline-block;text-decoration:none;font-weight:bold;}

.btn_b1:hover{color:#fff;?text-decoration:none;}

  • 上一篇:沒有任何基礎的人,學lua需要會很難嗎
  • 下一篇:上海大豪瑞法噴塗機械有限公司怎麽樣
  • copyright 2024編程學習大全網