【发布时间】:2022-08-17 23:27:02
【问题描述】:
所以我有一个菜单项列表,项目的文本与我在 ::after 伪元素的内容中绘制的圆圈重叠,我是 CSS 新手。
\'&\' : {
\'::after\' : {
\'content\': `\'\'`,
\'position\': \'absolute\',
\'border-radius\': \'100%\',
\'height\': \'21px\',
\'width\': \'21px\',
\'display\': \'block\',
\'border-style\': \'dotted\',
\'border-width\': \'2px\',
\'right\': \'35px\',
\'opacity\': 0.60,
},
\':hover\' : {
\'background-color\': \'rgba(255, 0, 0, 0.8)\',
},
\'&.Mui-selected\' : {
\'::after\' : {
\'content\': `\'✓\'`,
\'font-size\': \'16px\',
\'text-align\': \'center\',
\'line-height\': \'18px\',
\'border-style\': \'solid\',
\'opacity\': 1,
\'color\': \'rgb(48, 155, 145)\',
}
}
}
-
欢迎来到堆栈溢出!遗憾的是,您的问题不符合社区准则。请使用tour,访问how do I ask a good question,并将其设为minimal, reproducible example。
标签: css