我是靠谱客的博主 诚心绿草,这篇文章主要介绍vue 圆角输入框,现在分享给大家,希望可以做个参考。

在vue中实现圆角的搜索框
在这里插入图片描述

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<template> <div class="box"> <div class="search-box"> <input type="text" class="search-left" placeholder="请输入要搜索的内容"><input type="button" class="search-right" value="搜 索" icon="el-icon-search"> </div> </div> </template> <script> export default { data() { return { } } }; </script> <style lang="less" scoped> .box{ text-align:center; // font-size: 0; } .search-box{ margin:0 auto; width: 750px; } .search-left{ text-indent: 20px; width:80%; height:50px; border:rgb(137, 233, 217) 1px solid; // float:left; margin-top:20px; border-bottom-left-radius:25px; border-top-left-radius:25px; outline:none; // text-align:20px ; } .search-right{ width:19%; height:50px; background:rgb(137, 233, 217); color: #fff; border:none; margin-top:20px; border-bottom-right-radius:25px; border-top-right-radius:25px; outline:none; } </style>

最后

以上就是诚心绿草最近收集整理的关于vue 圆角输入框的全部内容,更多相关vue内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部