【发布时间】:2022-01-21 20:15:57
【问题描述】:
https://i.stack.imgur.com/zbCfI.png
我想在 vuetify 中创建一个文本字段但是按钮不能这样制作?和高度,但它不能改变吗?试了好几次改高度都不行
我已经有了 css,但是在 vuetify 上很难用
.parent-box{
width:fit-content;
background:#26376B;
}
.text-box{
border:1px solid #CACACA;
padding:5px 10px;
min-width:300px;
}
.btn{
padding:5px 20px;
width:100px;
color:#fff;
border:none;
background-color:#26376B;
cursor:pointer;
}
.common{
outline:none;
border-radius:50px;
}
<div class="parent-box common">
<input class="text-box common" type="text" placeholder="Chassis Number">
<button class="btn common">Check</button>
</div>
【问题讨论】:
-
只是好奇,你为什么要使用 Vuetify 组件?图像中的输入和按钮不符合 Material Design 原则。你可以在这里阅读更多信息:material.io/components
-
这能回答你的问题吗? Place Button with input text with css
标签: css vue.js nuxt.js vuetify.js