100分求一个button的css,采用者高分送上。 Online waitting

尐孑 2008-08-02 05:19:33

求一个能使button的上面两个角成弧形下面两个角是直角的css,高手救救啊。
...全文
231 19 打赏 收藏 转发到动态 举报
写回复
用AI写文章
19 条回复
切换为时间正序
请发表友善的回复…
发表回复
ChaoYang0502 2008-08-06
  • 打赏
  • 举报
回复
<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;" />
ChaoYang0502 2008-08-05
  • 打赏
  • 举报
回复

<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>

在需要的地方引用此样式试试
shadowjl 2008-08-03
  • 打赏
  • 举报
回复
image
srym 2008-08-03
  • 打赏
  • 举报
回复
图片吧哥们!
zpcoder 2008-08-03
  • 打赏
  • 举报
回复
把 button 的 boder 和 background 都设成 透明

然后有圆角图片 当背景
zld_baggio 2008-08-03
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 xiaoxue1129 的回复:]
用ps做图片吧
[/Quote]
jkan5522 2008-08-03
  • 打赏
  • 举报
回复
哥们,你是在发疯啊
papaya73 2008-08-03
  • 打赏
  • 举报
回复
哦,你要上园下方的,那还要稍改一下

<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>
papaya73 2008-08-03
  • 打赏
  • 举报
回复
可以哦,不过是模拟的,和图片的效果有点差距

<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>
ws_hgo 2008-08-02
  • 打赏
  • 举报
回复
为什么一定要不用Button了?
为什么不可以用ImageButton了?
tootto 2008-08-02
  • 打赏
  • 举报
回复
自己用photoshop做一个button图,然后在asp.net里添加一个ImageButton就行了。
winner2050 2008-08-02
  • 打赏
  • 举报
回复
<!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>
xiaoxue1129 2008-08-02
  • 打赏
  • 举报
回复
用ps做图片吧
YiCaoYiMu08 2008-08-02
  • 打赏
  • 举报
回复
div可以弄成圆角的
按钮???
suyiming 2008-08-02
  • 打赏
  • 举报
回复
用imagebutton
zengxie 2008-08-02
  • 打赏
  • 举报
回复
只能用图片做
xuebin_hu 2008-08-02
  • 打赏
  • 举报
回复
用图片!
cadust 2008-08-02
  • 打赏
  • 举报
回复
设计一个这样的图片,然后CSS样式中指定背景图片
caicoko 2008-08-02
  • 打赏
  • 举报
回复
用图片代替吧,css不是万能膏药~

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧