输入你的当前位置,我们帮你找到最近的加油站。
CSS 文件(style.css):
css
body {font-family: Arial, Helvetica, sans-serif;
}h1 {margin-top: 0;
}p {margin-bottom: 1em;
}form {display: flex;flex-direction: column;gap: 1em;
}label {margin-bottom: 0.5em;
}input[type="text"] {width: 100%;padding: 0.5em;border: 1px solid ccc;border-radius: 4px;
}input[type="submit"] {background-color: 007bff;color: fff;padding: 0.5em 1em;border: none;border-radius: 4px;cursor: pointer;
}map {width: 100%;height: 400px;
}结果页面(result.php):
php
';
echo '
';