编辑下面的代码:【加编码】
<html> <head> <script> function displayResult() { document.getElementById("q1").style.quotes="'<' '>' '[start]' '[end]'"; } </script> </head> <body> <q id="q1">This is a <q>quoted element</q> in another quoted element.</q> <br> <button type="button" onclick="displayResult()">Change quotation marks</button> <p><b>Note:</b> This example does not work in IE and Safari.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂