9 lines
438 B
HTML
9 lines
438 B
HTML
|
<h1 style="color:red">hello world</h1>
|
||
|
<a href="https://www.baidu.com">跳转百度</a>
|
||
|
<img id="i1" src="https://img1.baidu.com/it/u=3518673092,2032183538&fm=253&fmt=auto&app=138&f=JPEG?w=781&h=500" width="400"/>
|
||
|
<button id="b1">点我</button>
|
||
|
<script>
|
||
|
document.getElementById("b1").onclick=function (){
|
||
|
document.getElementById("i1").src="https://p8.itc.cn/q_70/images01/20220316/60665900b6224f308abd93e838dd444f.png"
|
||
|
}
|
||
|
</script>
|