【问题标题】:When Side Bar shows up still can see other buttons in the page through the side bar当侧边栏出现时,仍然可以通过侧边栏看到页面中的其他按钮
【发布时间】:2021-06-04 06:17:32
【问题描述】:

当侧边栏出现时,仍然可以通过侧边栏看到页面中的其他按钮。谁能帮我解决这个问题

enter image description here

enter image description here

【问题讨论】:

  • 请分享一些代码
  • 当您发布图像而不是代码时,我们很难提供帮助。请添加一些代码,并清楚地解释当前行为和预期行为。
  • 如果你的意思是buy now <3 按钮,你需要检查它的z-index,应该小于sidebar的。
  • @AbhishekSharma 谢谢你的朋友.. 我查看了你的回复并且成功了

标签: css reactjs


【解决方案1】:

你应该试试这个

将侧栏包裹在 div 中,然后将 div 的宽度设置为 100% 并提供背景颜色(不透明度:0.9)。 您将获得更好的用户体验。

注意:当某些用户单击该 div 的背景时,您必须编写一些脚本来禁用侧边栏。

【讨论】:

  • 希望对你有帮助!!
猜你喜欢
  • 2019-10-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-04-14
  • 2016-01-12
  • 2017-10-13
  • 1970-01-01
相关资源
最近更新 更多