我是靠谱客的博主 粗心电灯胆,这篇文章主要介绍html中圆角搜索框怎么做,现在分享给大家,希望可以做个参考。

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

html中圆角搜索框怎么做?

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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>

<style>
    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>
</head>

<body>
<form action="http://www.baidu.com/baidu" target="_blank">
    <input type="text" name="word" size="60" 
    style="height: 30px;width: 1100px;background-color: #9a9a9a26;">
    <input type="submit" value="搜索" 
    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;">
</form>
</body>

</html>
登录后复制

运行效果如下:

bdb1a33197aef234de8f502134839ee.png

【推荐:css视频教程】

以上就是html中圆角搜索框怎么做的详细内容,更多请关注靠谱客其它相关文章!

最后

以上就是粗心电灯胆最近收集整理的关于html中圆角搜索框怎么做的全部内容,更多相关html中圆角搜索框怎么做内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(360)

评论列表共有 0 条评论

立即
投稿
返回
顶部