div+css布局实现网址输入框搜索框效果代码
代码语言:html
所属分类:搜索
代码描述:div+css布局实现网址输入框搜索框效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" /> <style> body{ padding: 200px; } .container { display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); width: 270px; height: 50px; border-radius: 10px; position: relative; border: 2px solid #000000; } .prefix { display: flex; align-items: center; justify-content: center; color: #666; font-size: 15px; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; height:100%; width: 70px; font-weight: 600; padding:0 10px; background-color: #f0f0f0; border-radius: 10px 0px 0px 10px; } .myinput-link { display: flex; align-items: center; justify-content: center; outline: none; font-weight: 500; border: none; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; padding: 0px; height: 100%; width: 160px; background-color: #fff; font-size: 15px; } .link-icon { font-size: 16px; background-color: #fff; height: 100%; width: 40px; display: flex; align-ite.........完整代码请登录后点击上方下载按钮下载查看
网友评论0