2
我在我的CSS中將以下內聯SVG定義爲背景圖像。內聯SVG背景無法在Internet Explorer 11中工作
div {
border: 1px solid black;
background-image: url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' preserveAspectRatio='none' viewBox='0 0 10 10'> <path d='M2 10 L8 0 L10 0 L10 10' fill='%238A92DF'></path></svg>");
background-repeat: no-repeat;
background-position: center center;
background-size: 100%;
}
它在Chrome,Firefox和Edge中運行正常,但在Internet Explorer 11中失敗。爲什麼?
你來晚了黨,但仍然是非常感激。現在我將更接近我的web應用程序中的完整IE11支持。 – aanders77
我知道:)我在谷歌搜索,這是第一個鏈接,所以我回答,任何人可能會在這裏結束.... –