HTML调用不上js,函数功能实现不了(理想效果:在网页中用户可以选择div中内容的字体大小)<!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> 字号:[ <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技术发展的第一个阶段就是静态技术阶段, </div> </body></html>
添加回答
举报
0/150
提交
取消