html - 如何从 IE11 中的对象 SVG 中删除轮廓/边框

标签 html css svg

如何在 IE11 中删除对象 SVG 中的轮廓/边框

我尝试使用 border:0 & outline: 0 但它不起作用。大纲仅在 IE 中出现.. 我需要在文本 SVG 内容下方添加边框 enter image description here

      <object> SVG Content
    	<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px">
    		 <rect x="10" y="10" width="80" height="80"/>
    	</svg>
    </object>

最佳答案

SVG 边框调用 stroke

尝试删除它:

svg {
    stroke: transparent;
    stroke-width: 0px;
}

关于html - 如何从 IE11 中的对象 SVG 中删除轮廓/边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53722972/

相关文章:

javascript - 使用 ng-change Angular 隐藏元素

html - 使用此响应主题在 IE 中显示问题

html - 如何根据窗口高度制作垂直响应元素?

css - 子 div 忽略 Firefox 中的父元素 padding-bottom 但在 chrome 上工作

html - CSS:SVG 旋转动画失败

Javascript setInterval 功能到 onmousedown 事件

javascript - 制作一个随滚动流动的div

继承(颜色)值的 CSS 自定义属性更改不起作用

css - 掩码大小 : 100% 100% does not stretch horizontally

javascript - 在 jquery 方法中调整窗口大小的调用函数