[英]When i'am trying to give border style dotted in browser it showing solid border below is my css
.myclass {
border: 6px dotted #2d2d2d;
width:200px;
height:200px;
border-radius:100% 100% 100% 100%;
}
When i'am trying to give full border radius to border: 6px dotted #2d2d2d; 当我尝试给边框加上完整的边框半径时:6px点缀#2d2d2d; in browser it showing solid border not dotted above is my css code please help me.
在浏览器中,它显示的实线边框没有在上方虚线是我的CSS代码,请帮助我。
This only happens in Firefox I think it's a bug - it's because of the radius - you might consider using an image in this case. 这仅发生在Firefox中,我认为这是一个错误-这是由于半径引起的-在这种情况下,您可以考虑使用图片。 CSS border radius for dotted border
虚线边框的CSS边框半径
Instead of writing: 而不是写:
border: 6px dotted #2d2d2d;
try: 尝试:
border-style: doted;
border-width: 6px;
border-color: #2d2d2d;
Thats what I use when I write CSS. 那就是我编写CSS时使用的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.