我是靠谱客的博主 粗心电灯胆,最近开发中收集的这篇文章主要介绍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中圆角搜索框怎么做所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部