按钮的css不会随按钮的enable属性改变

解决方案 »

  1.   

    不,我是说这种情况下显示的文字的css,而不是按钮的css.
      

  2.   

    不用CSS 直接disabled="disabled"
      

  3.   

    你的意思是想btn在dis的时候上面文字使用和ena时不一样的css吧?那你就在btn dis的时候重新给btn的字体换个css就可以了,ena的时候在换回来。Me.Button1.Enabled = False
    Me.Button1.Style.Item("font-name") = "Courier New"
    Me.Button1.Style.Item("font-size") = "14px"
    Me.Button1.ForeColor = System.Drawing.ColorTranslator.FromHtml("#FFFFFF")
    Me.Button1.Enabled = True
    Me.Button1.Style.Item("font-name") = "Courier New"
    Me.Button1.Style.Item("font-size") = "12px"
    Me.Button1.ForeColor = System.Drawing.ColorTranslator.FromHtml("#000000")
      

  4.   

    我不是说button,而是这种字体用css如何来模仿!谢谢!!!
      

  5.   

    只是这种文字的css,跟button没有任何关系.高手帮帮忙!
      

  6.   

    <table width="400" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#999999" bgcolor="#D1D2A4">
    <tr> 
    <td style="padding:15px;letter-spacing:3px; COLOR: #6b6c35; FILTER: dropshadow(color=#ffffcc,offx=1,offy=1);" >
    文字嵌入
    </td>
    </tr>
    </table>