求一个能使button的上面两个角成弧形下面两个角是直角的css,高手救救啊。

解决方案 »

  1.   

    用图片代替吧,css不是万能膏药~
      

  2.   

    设计一个这样的图片,然后CSS样式中指定背景图片
      

  3.   

    div可以弄成圆角的 
     按钮???
      

  4.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style type="text/css">
    .buttonCSS
    {
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    background-color: #66FFFF;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    }
    </style>
    </head><body>
    <form id="form1" name="form1" method="post" action="">
      <label>
      <input name="ww" type="submit" class="buttonCSS" id="ww" value="提交"  />
      </label>
    </form>
    </body>
    </html>
      

  5.   

    自己用photoshop做一个button图,然后在asp.net里添加一个ImageButton就行了。
      

  6.   

    为什么一定要不用Button了?
    为什么不可以用ImageButton了?
      

  7.   

    可以哦,不过是模拟的,和图片的效果有点差距<html> 
    <head> 
    <title>css圆角效果--网站每日新</title> 
    <meta http-equiv="content-type" content="text/html; charset=gb2312"> 
    <style type="text/css"> 
    div.RoundedCorner{background: #9BD1FA} 
    b.rtop, b.rbottom{display:block;background: #FFF} 
    b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #9BD1FA} 
    b.r1{margin: 0 5px} 
    b.r2{margin: 0 3px} 
    b.r3{margin: 0 2px} 
    b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px} 
    </style> 
    </head> 
    <body> 
    <div class="RoundedCorner"> 
    <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> 
    <br>无图片实现圆角框<br><br> 
    <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b> 
    </div> 
    </body> 
    </html>
      

  8.   

    哦,你要上园下方的,那还要稍改一下<html> 
    <head> 
    <title>css圆角效果--网站每日新</title> 
    <meta http-equiv="content-type" content="text/html; charset=gb2312"> 
    <style type="text/css"> 
    div.RoundedCorner{background: #9BD1FA} 
    b.rtop, b.rbottom{display:block;background: #FFF} 
    b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #9BD1FA} 
    b.r1{margin: 0 5px} 
    b.r2{margin: 0 3px} 
    b.r3{margin: 0 2px} 
    b.r5{margin: 0 0px} b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px} 
    </style> 
    </head> 
    <body> 
    <div class="RoundedCorner"> 
    <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> 
    <br>无图片实现圆角框<br><br> 
    <b class="rbottom"><b class="r5"></b><b class="r5"></b><b class="r5"></b><b class="r5"></b></b> 
    </div> 
    </body> 
    </html>
      

  9.   

    把 button 的 boder 和 background 都设成 透明然后有圆角图片 当背景
      

  10.   


    <style type="text/css">
    <!--
    .btnStyle {
    background-image:url(http://www.mpsoft.net.cn/images/bar_link.gif);
    background-position:center center;
    background-repeat:no-repeat;
    width:87px;
    height:33px;
    }
    -->
    </style>在需要的地方引用此样式试试
      

  11.   

    <asp:Button ID="btnEncrypt" runat="server" Text="加密" OnClick="Encryption" CssClass="btnStyle" BorderWidth="0" Width="80px" />
    <input id="Button1" type="button" value="button" class="btnStyle" style="border:solid 0px #ffffff; width:80px;" />