谁可以为输入元素制作圆角?
我需要一种不使用 javascript 和图像的方法..
Added:
<!DOCTYPE html>
<html>
<head>
<title>xx</title>
<style type="text/css">
input
{
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
}
</style>
</head>
<body>
<input type="text" value="test" />
</body>
</html>
它在 Firefox 3.6.12 中不起作用!
CSS3 拥有许多有利于网页设计师的新功能。这包括边框舍入:
input
{
-webkit-border-radius: 5px; //For Safari, etc.
-moz-border-radius: 5px; //For Mozilla, etc.
border-radius: 5px; //CSS3 Feature
}
您可以向输入字段添加一个类,并在此 CSS 代码段中使用该类来定位某些输入元素。
Internet Explorer 8 不支持 CSS3。 Internet Explorer 9 希望包含其所有功能。
关于您编辑的问题:
"text/css/"
应该"text/css"
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)