
input[type=text],textarea{border-radius:3pxborder:1px solid #000}
border-radius用法如下:
border-radius 属性是一个简写属性,用于设置四个 border-*-radius 属性。
该属性允许为元素添加圆角边框
语法:
border-radius: 1-4 length|% / 1-4 length|%
按此顺序设置每个 radius 的四个值。
如果省略 bottom-left,则与 top-right 相同。
如果省略 bottom-right,则与 top-left 相同。
如果省略 top-right,则与 top-left 相同。
单位一般用px和百分比较多,其他单位也可
最新的HTML标准是支持直接建立圆角效果的边框的,但目前的浏览器还不支持。所以只能自己用绘图软件做个圆角效果的背景图,然后:<input type=text value="" style="background:url(背景图文件名) no-repeat left topwidth:200pxheight:22pxborder:0padding:2px 6px">
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)