Text field from Vuetify has no underline

心已入冬 提交于 2020-01-07 04:31:25

问题


I am trying to use vuetify's text field. It looks like this:

After applying focus it looks like this:

I have read this this, but my app IS wrapped in v-app. Is there anything else I could try?

HINT: Dark theme doesn't work for me as well,but for example, I can use classes like "red", "text--red", to apply colors.

Proof, that there is v-app involved below:

EDIT: I tried to wrap it with v-content as well, but it didn't help.

<v-app>
  <v-content>
    <router-view></router-view>
  </v-content>
</v-app>


回答1:


unpkg.com links to the latest version of vuetify, which is currently 0.17.0. To use 0.16.9 css from unpkg you have to use this link: https://unpkg.com/vuetify@0.16.9/dist/vuetify.min.css




回答2:


I fixed it by removing

<link href="https://unpkg.com/vuetify/dist/vuetify.min.css" rel="stylesheet">

from index.html, and adding

import '../node_modules/vuetify/dist/vuetify.min.css';

to main.js file.

Dunno why it worked though.




回答3:


In my case the fix was to add margin-bottom 1px to the input element. Hope it helps.



来源:https://stackoverflow.com/questions/47316297/text-field-from-vuetify-has-no-underline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!