html按钮问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:10:09
Original
2160 people have browsed it

<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /></head><body><input type="button"  value="next" style="color:#FFFFFF;background-color:#0065CA;font-family:BorderWebBOLD;font-size: 15px;Font-Weight:bold;" onClick="btnApply()"> </body></html>
Copy after login


我要设置这个按钮,但是按钮的形状是长方形的,我需要这个按钮两边是呈圆弧形,同时我不希望通过插入按钮图片来实现,什么属性或者方法可以达到两边呈半弧的按钮?

求解!谢谢!


回复讨论(解决方案)

标准的CSS2没办法弄圆角的
除非加一大堆元素来模拟,那这样还不如加一个图片省事

纯CSS实际的按钮, 圆角、立体效果

设计一张两边半弧形btn_bg.gif透明背景图
.btn{
 width:**px; height:**px;
 background:url(btn_bg.gif) no-repeat;
}


CSS3属性 border-radius: 3px 4px 5px 6px; 只有部分浏览器支持(标准浏览器和IE9以上)。

纯CSS实际的按钮,圆角、立体效果
+111

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!