php 圆角边框代码,html中圆角搜索框怎么做

html中圆角搜索框的实现方法:首先创建一个HTML示例文件;然后创建一个form标签;接着定义好input输入框;最后通过“border-top-left-radius”等属性实现圆角搜索框即可。

5c942a88cae210997fcef4c0978bbe5a.png

本教程操作环境:windows7系统、HTML5&&CSS3版、Dell G3电脑。

html中圆角搜索框怎么做?

非常简单,主要用到css中的border属性,代码示例如下:

input[type=text] {

color: #111;

background-color: #c7dec6;

border-top-left-radius: 10px;

border-top-right-radius: 10px;

border-bottom-left-radius: 10px;

border-bottom-right-radius: 10px;

padding:20px;

}

style="height: 30px;width: 1100px;background-color: #9a9a9a26;">

style="border-top-left-radius: 10px;

border-top-right-radius: 10px;

border-bottom-left-radius: 10px;

border-bottom-right-radius: 10px;

padding:20px;

height: 60px;width: 80px;

margin-left: 30px;

background-color: #1591ea;

font-size: large;

color: antiquewhite;">

运行效果如下:

fa3b30f5e7e3be09e686fb21751b5e2c.png

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值