即使不点击 "Click Me" 按钮,仅双击一下 SVG 的文字,也会变成只剩一半内容。
应该是 Edge 的 bug,可以向微软提 bug。
无 Vue 的 html 文件:
<html class="">
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<style class="cp-pen-styles">
body {
font-size: 18px;
}
#svg-icon {
display: block;
margin: 0 auto;
}
</style>
</head>
<body>
<title>Edge vue svg test</title>
<div id="app">
<svg id="svg-icon" width="8.4em" height="2.2em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 315 70" version="1.1">
<g>
<text id="RECOMMEND" x="50%" y="50%" text-anchor="middle" font-size="46" font-weight="normal" fill="#000">
RECOMMEND
</text>
</g>
</svg>
</div>
</body>
</html>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…