📜  如何通过单击图标使菜单栏出现?在 CSS 中? - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:46.285000             🧑  作者: Mango

代码示例1
/*you can use the :checked or the :focus property on the icon you want the user to click and than change the display of the menu from none to whatver you want*/
#yourmenu{
  /*style*/
  display: none;
}
#yourbutton{
  /*style*/
}
#yourbutton:checked > yourmenu{
  display: block;/*whathever value you want*/
}
/*sorry for the shitty english, hope to help someone with this concept*/