2
0

Search.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!DOCTYPE html>
  2. <html lang="zh-Hans">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <!--[if IE]>
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  7. <![endif]-->
  8. <meta name="viewport" content="width=455, initial-scale=1.0" />
  9. <link
  10. rel="icon"
  11. type="image/svg+xml"
  12. href="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCI+PGNpcmNsZSBjeD0iMjUiIGN5PSIyNSIgcj0iMjAiIGZpbGw9ImdyZWVuIi8+PC9zdmc+"
  13. />
  14. <title>搜索</title>
  15. <style>
  16. body {
  17. margin: 0;
  18. background: #f4f4f4;
  19. }
  20. h1 {
  21. box-sizing: border-box;
  22. width: 100%;
  23. background: #ccc;
  24. margin: 0;
  25. padding: 30px;
  26. }
  27. .container {
  28. text-align: center;
  29. margin-top: 20px;
  30. }
  31. .container iframe {
  32. overflow: hidden;
  33. width: 100%;
  34. height: 430px;
  35. }
  36. .search-input {
  37. box-sizing: border-box;
  38. display: inline-block;
  39. padding: 10px;
  40. border: 1px solid #ccc;
  41. width: 300px;
  42. }
  43. .search-button {
  44. display: inline-block;
  45. padding: 10px 20px;
  46. border: none;
  47. background-color: #4caf50;
  48. color: white;
  49. cursor: pointer;
  50. }
  51. </style>
  52. </head>
  53. <body>
  54. <h1>搜索</h1>
  55. <div class="container">
  56. <form action="https://cn.bing.com/search" method="get">
  57. <input
  58. type="text"
  59. name="q"
  60. class="search-input"
  61. placeholder="搜索……"
  62. /><button type="submit" class="search-button">搜索</button>
  63. </form>
  64. </div>
  65. </body>
  66. </html>