Material design input with bootstrap-4

孤街浪徒 提交于 2019-12-07 08:27:08

问题


I am creating a vue webapp and using bootstrap-4 as CSS framework. I want to have input fields like material design, But bootstrap have only older design of input fields with border on all sides and no floating label.

What can be best way to get this done?


回答1:


You should overwrite standard Bootstrap rules with one you need - very simple process.

There are Bootstrap Material, but I think it's for version 3

http://fezvrasta.github.io/bootstrap-material-design/bootstrap-elements.html

But you can take rules from here, for partial that you need, and paste it to your custom CSS.




回答2:


You may customize what resources you want from bootstrap, doing it you might not have incompatibility with 2 frameworks breaking css each other...

http://getbootstrap.com/customize/

you may try getting resources like grids... something that will not break material design...

I already did it.



来源:https://stackoverflow.com/questions/40888352/material-design-input-with-bootstrap-4

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