imagebutton里面有一个cssclass属性.
你写好相应的css,再引用就行了

解决方案 »

  1.   

      <div style="border:solid 1px red;height:100px;width:200px" >
                <asp:ImageButton  ID="i1" runat="server" style="left:100px;top:20px;position:relative"/>
            </div>
      

  2.   

    imagebutton里面有个cssclass属性,你写好相应的css,再引用就行了
      

  3.   

    服务器控件没有style这个属性的吧?不过可以通过后台代码加上去page_load事件里ibtn.Attributes.Add("style", "left:100px;top:20px;position:relative;");