Comments (6)
@leftstyle 在自己项目的reset.css中设置一下 border-box即可。不过官方能改是最好的。
from vant.
@YYQ8023 直接覆盖会不会影响vant组件的样式?
from vant.
@leftstyle 我目前的项目覆盖了没有产生影响,我之前用的一个UI组件库的resetCss里也是
* { box-sizing: border-box; }
from vant.
@YYQ8023 OK,多谢。希望官方能回应一下这个问题。
from vant.
@leftstyle Vant 的所有组件都是不依赖 reset.css 中的样式的,因此在项目中使用 border-box 还是 content-box 完全取决于使用者,对组件样式不会产生影响。
目前只存在一种方式会引入 vant 中 reset.css,就是直接在项目中完整地引入 vant-css。对于这种情况,建议将引入方式改为按需引入,减少不必要的代码引入。vant-css 这边也会在下个大版本中移除对 reset.css 的默认引用。
from vant.
@chenjiahan I see.谢谢。
from vant.
Related Issues (20)
- [Feature Request] vant2长图问题 HOT 1
- [文档][email protected] 引用方式有误 HOT 2
- 使用 list 加载更多的时候会回到顶部 HOT 3
- [Feature Request] Popup + Floating Panel HOT 4
- 优化CheckBox的最大可选数属性 HOT 8
- 自定引入组件案例中基于vue-cli的vue.config.js进行配置后运行项目报ComponentsPlugin is not a function HOT 3
- calendar default mindate 在ios错误 HOT 1
- [Bug Report] van-uploader预览bug HOT 4
- 文档错误 HOT 1
- van-address-list和van-address-edit文字显示乱码 HOT 3
- [Bug Report] cdn报错 HOT 1
- 密码框和数字键盘搭配使用,华为机型出现监听bug HOT 3
- [Bug Report] ios 圆角属性 在cordava 嵌套的H5上 ,样式丢失导致的元素空白问题 HOT 3
- [Feature Request] TreeSelect 分类选择 左侧区域自定义插槽 HOT 4
- 预览图片组件,横屏显示(1232*568)的时候, 对于长图,无法显示完整图片,不能向上滑动查看 HOT 5
- showImagePreview HOT 1
- vant-tab 标签页组件进行切换的时候 active值变了 但是样式没有变化 需要点击两次 HOT 2
- [Bug Report] van-tabs 使用 sticky 后,切换 tab sticky 展示问题 HOT 6
- [Bug Report] 在钉钉内使用安卓手机上传文件名内包含%2f(/的url转义)时,上传组件没有反应 HOT 3
- v-popup中嵌套v-list,无法触发load事件 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vant.