💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
### 代码: ~~~ <style> img{ width: 300px; } </style> </head> <body> <img src="images/placeholder.png" id="show" alt=""> <button id="modern">现代</button> <button id="old">古典</button> <script> // 元素属性可以直接元素.属性来改变他的属性 var img =document.getElementById("show"); var modern =document.getElementById("modern"); var old =document.getElementById("old"); modern.onclick=function(){ img.src="images/现代.png" } old.onclick=function(){ img.src="images/古典.png" } </script> </body> ~~~