uniapp tabbar 浏览器调试显示 真机不显示

解决方案,把tabBar里面的单位全改为px,rpx是不会显示的!

注意了,改完一定要重新运行,不然无效,坑爹

"tabBar": {
		"borderStyle": "black",
		"selectedColor": "#2563EB",
		"color": "#94A3B8",
		"height": "64px",
		"fontSize": "12px",
		"iconWidth": "24px",
		"list": [{
			"pagePath": "pages/index/index",
			"iconPath": "static/images/icon_frame.png",
			"selectedIconPath": "static/images/icon_frame_active.png",
			"text": "首页"
		}, {
			"pagePath": "pages/exercise/index",
			"iconPath": "static/images/icon-square-bar.png",
			"selectedIconPath": "static/images/chart-square-bar_active.png",
			"text": "运动"
		}]
	}

真无语,px是不能适配的啊,谁有解决方案?

你可能感兴趣的:(uni-app,前端)