css - svg圆中心对齐在IE11中不起作用
问题描述
我正在使用css制作一个圆形进度条。在它里面我有一个svg里面的圆圈。问题是圆圈在IE11中被切断了。请帮助解决这个问题。提前感谢您的帮助
我的代码
.percent {
position: relative;
width: 130px;
height: 130px;
border-radius: 50%;
}
svg {
position: relative;
width: 130px;
height: 130px;
}
svg circle {
width: 100%;
height: 100%;
/* margin-left:auto;
margin-right:auto;
display:block;not working*/
fill: none;
stroke: #dbdbdc;
stroke-width: 6;
-webkit-transform: translate(5px, 5px);
transform: translate(5px, 5px);
}
<div class="percent">
<svg class="Malware">
<circle cx="60" cy="60" r="60"></circle>
<circle cx="60" cy="60" r="60"></circle>
</svg>
<div class="number">
<h2>91</h2>
</div>
</div>
所需的输出
解决方案
推荐阅读
- python - 如何从文本文件中删除重复行以及与此重复项相关的唯一性
- c# - .NET Core - BLAZOR - 自定义组件 - 将异步任务存储在字典中以供以后与 EventCallback 一起使用
- android - Android RecyclerView SelectionTracker 清除外部触摸时的选择
- python - Python pool.map 函数完成但留下僵尸
- haskell - 比较元组列表
- regex - 有没有办法在正则表达式中插入变量?
- ios - json 中返回的错误解码数组 - swift
- python - 确保 Twilio 按顺序发送消息链的最可靠和最有效的方法是什么?
- java - 一个尝试块中的捕获量是否有良好的实践限制?
- postgresql - Postgres全文忽略xml标签