打开/关闭搜索
搜索
打开/关闭菜单
1771
228
43
10.8万
珠海交通维基
导航
珠海巴士频道微博
公共汽车导航页
传图至图片枢纽
特殊页面
上传文件
周边城市交通维基/百科
广州交通维基
深圳交通百科
佛山公交百科
湛江交通百科
五邑交通维基
茂名交通百科
清远交通维基
东莞道路研究社
中山公交百科
卡家
CARD+ 卡家
交通卡导航页
珠海通刷卡测试
维基工具
最近更新
维护记录
随机页面
帮助
External
关于我们
sidebar-icon-homepage
sidebar-icon-weibo
sidebar-icon-facebook
切换首选项菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“︁测试20”︁的源代码
来自珠海交通维基
分享此页面
更多操作
←
测试20
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<html> <head> <title>图片搜索</title> <style> body { display: flex; flex-direction: column; align-items: center; padding: 20px; } .search-container { margin: 20px 0; } input { padding: 8px; width: 200px; margin-right: 10px; } button { padding: 8px 16px; cursor: pointer; } #resultImage { max-width: 80%; margin-top: 20px; } </style> </head> <body> <div class="search-container"> <input type="text" id="searchInput" placeholder="请输入你要查询的车牌号"> <button onclick="searchImage()">搜索</button> </div> <img id="resultImage" alt="搜索结果"> <script> function searchImage() { const input = document.getElementById('searchInput').value; const imageUrl = `https://w.zhbus.org/images/thumb/0/07/%E6%B9%96%E5%BF%83%E8%B7%AF%E5%8F%A3520.jpg/${encodeURIComponent(input)}.jpg`; const imgElement = document.getElementById('resultImage'); imgElement.src = imageUrl; imgElement.onerror = function() { this.style.display = 'none'; alert('图片未找到'); } imgElement.onload = function() { this.style.display = 'block'; } } </script> </body> </html>
返回
测试20
。