Vue项目警告start value has mixed support, consider using flex-start instead

在vue项目中,发现报如下错误:startvaluehas mixed support,considerusingflex-startinstead 在网上搜索了下,发现是因为CSS写法不规范导致的。 之前的CSS弹性盒子模型写法是这样的:...

在vue项目中,发现报如下错误:startvaluehas mixed support,considerusingflex-startinstead

attachments-2021-12-oEmPX9Uy61c85e343082c.png

在网上搜索了下,发现是因为CSS写法不规范导致的。


之前的CSS弹性盒子模型写法是这样的:


div{display: flex;justify-content: start;}

attachments-2021-12-m8GY8pro61c85e4c95b6c.png

但是这种是很早的属性值了,新的属性值应该是flex-start,如下:


div{display: flex;justify-content: flex-start;}

attachments-2021-12-DBGAVILH61c85e5674ad3.png

此致问题解决。

attachments-2021-12-dnTOkdtO61c85e607f2c2.png

  • 发表于 2021-12-26 20:21
  • 阅读 ( 1089 )

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
admin
admin

651 篇文章

作家榜 »

  1. admin 651 文章
  2. 粪斗 185 文章
  3. 王凯 92 文章
  4. 廖雪 78 文章
  5. 牟雪峰 12 文章
  6. 李沁雪 9 文章
  7. 全易 2 文章
  8. Stevengring 0 文章