html的搜索框代码:1、在dw中创建一个input框和button按钮。2、分别为input框和button按钮设置样式即可。在dw中创建一个input框和button按钮,将它们摆放在同一排,代码如下:<!DOCTYPE 
html的搜索框代码:1、在dw中创建一个input框和button按钮。2、分别为input框和button按钮设置样式即可。
在dw中创建一个input框和button按钮,将它们摆放在同一排,代码如下:
<!DOCTYPE html><html>
<head>
<meta charset="utf-8">
<title>demo</title>
</head>
<body>
<input type="" name="" id="" value="" /><button>搜索</button>
</body>
</html>
首先为input框添加“#7FCC0B”颜色的边框,并设置宽度和高度,再给button按钮设置白色的字体和“#7FCC0B”的背景颜色即可,代码如下:
<style type="text/CSS">input{
width: 180px;
height: 30pox;
border:1px solid #7FCCOB;
border-right: none;
border-radius: 4px;
}
button {
position: relative;
right: 2px;
width: 50px;
height: 35px;
font-size: 14px;
color: white;
backgrounf: #7FCC0B;
border: 0;
border-radius: 4px;
</style>
</head>
--结束END--
本文标题: html的搜索框代码怎么写
本文链接: https://www.lsjlt.com/news/110552.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0