javascript - Using ant-design-mobile, why are the components so huge?
伊谢尔伦
伊谢尔伦 2017-05-18 10:55:10
0
2
848

I recently started using antd-mobile. I found that if I use it directly, the components are very huge, which is seriously inconsistent with the examples given.

For example, I looked at the source code of tabbar, and the default height is 100px.

lib/tab-bar/style/index.less 127:
    height: @tab-bar-height;//@tab-bar-height实际上是100px

Some others are also too big.
like:

In addition, I just copied and pasted the sample directly after configuring webpack and babelrc for npm related content.

Excuse me, what is the problem? Does anyone know?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
过去多啦不再A梦

antd has its own set of HD screen compatibility solutions, you need to set the viewport correctly.

See: "HD" solution settings for antd mobile 0.8 or above

刘奇

Add <meta name="viewport" > and set its attribute values ​​correctly

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!