CSS 网格 justify-self 不在 Safari 中居中元素
我有这个 div
(移动菜单),通过 css grid
和 justify-self
属性在 chrome
中居中,但是在 safari 中,它位于屏幕左侧(instagram 图标后面):
是否有我可以使用的 webkit
属性,或者您有吗其他想法如何解决这个问题?
我正在使用 vue.js
来渲染 html。
I have this div
(mobile menu) that is centered in chrome
via css grid
and justify-self
property but in safari it sits on the left side of the screen (behind the instagram icon):
Is there a webkit
property I can use or do you have any other idea how to fix this?
I am using vue.js
to render the html.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
align-self
属性应该可以。相同的 W3Schools 参考
Using the
align-self
property should work.W3Schools reference for the same