HTML調(diào)用不上js,函數(shù)功能實(shí)現(xiàn)不了(理想效果:在網(wǎng)頁(yè)中用戶(hù)可以選擇div中內(nèi)容的字體大?。?lt;!doctype html><html> <head > <meta chraset="UTF-8"> <meta name="viewport" content="width=device-width initial-scale=1"> <meta http-equive="X-UA-compatible" content="ID=edge"> <title>選擇器</title> <script language="javascript" > function doZoom(size){ document.getElementById('zoom').style.fontSize=size+'px'; } </script> </head> <body> <span> 字號(hào):[ <a herf='javascript:doZoom(16)'>大</a> <a herf="javascript:doZoom(14)">中</a> <a herf="javascript:doZoom(12)">小</a> ] </span> <div id="zoom">Web 1.0(信息共享) Web技術(shù)發(fā)展的第一個(gè)階段就是靜態(tài)技術(shù)階段, </div> </body></html>
如何用js設(shè)置選擇網(wǎng)頁(yè)字體大?。?/h1>
德瑪西亞99
2019-02-09 19:23:47
德瑪西亞99
2019-02-09 19:23:47