0
CONTENTEDITABLE屬性不會在Firefox 40.爲什麼在Firefox
<?xml version="1.0" standalone="yes" ?>
<svg xmlns="http://www.w3.org/2000/svg">
<foreignObject width="100" height="100" x="20" y="65">
<body xmlns="http://www.w3.org/1999/xhtml">
<p contenteditable="true">text</p>
</body>
</foreignObject>
</svg>
此代碼工作在鉻44,但不(文字不可編輯)工作?
它適用於我在FF 40.0.3(這意味着我可以編輯文本)。 –
它與本站點的「運行代碼片段」一起工作,但如果您將此代碼粘貼到文件中並在Firefox上打開此文件,則不適用於我。 – matteli
更改文件以使其具有.html擴展名,並且可以工作。 –