ANTD无线电圈落在外面
我在React JS应用中使用单选按钮。 最近,我注意到在无线电按钮中,Cicrle掉入按钮外。 我以为可能的边距,桨板有问题。 但是,当我删除所有边距,样式,classNames等时。 问题仍然没有消失。 当我尝试在另一个页面中使用相同的ANTD组件时,这是同一问题。 我没有在index.css中使用任何特定样式 antd Radio
以前有人遇到过这个问题 抱歉,我没有提供任何代码。 但是我什至没有任何要提供的东西。 我删除了所有可能
I using radio button in React js App.
And lately i noticed that in radio button cicrle falls outside the button.
I thought maybe there are something wrong with margins, paddings.
But when i removed all margins, styles, classNames and so on.
Issue still didn't dissapear.
When i tried to use the same ANTD component in another page, it was the same problem.
I didn't use any specific styles in index.css
Did anyone had this issue before with ANTD Radio
Sorry i didn't provide any code.
But i don't even have anything to provide.
I literelly deleted everything that was possible
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为组件创建CSS文件,并添加以下CSS。您的问题很可能是由于
位置
属性,该属性由其他某些CSSposition
overriden构成应该是位置:absolute;
default antd
应如下所示
.ant-radio-inner :: 在
位置
属性从上面的班级中删除时,。 property
添加
position:absolute;
属性:我希望这对您有帮助。
Create a css file for your component and add the following css. Your issue is most probably due to the
position
property which is overriden by some other cssposition
should beposition: absolute;
default antd
.ant-radio-inner::after
should be as followsWhen
position
property is removed from above class you get this issue, check the following screenshotAfter removing
position: absolute;
propertyAfter adding
position: absolute;
property:I hope this helps you.., Thank you :)