如何修复html表单选择移动预览的元素

发布于 2025-01-31 01:59:21 字数 536 浏览 3 评论 0原文

有人看过这个吗?我正在使用Visual Studio代码,当我在勇敢的浏览器(DevTools与Google Chrome浏览器完全相似)中预览时,选项列表远离布局。不确定如何更好地解释这一点。

没有使用CSS,只是浏览器的默认值。我需要更改特定的CSS值吗?我刚刚从W3School https://www.w3schools.com复制了准确​​的代码。 /tags/tryit.asp?filename = tryhtml_select

enter image description here

Has anyone ever seen this? I'm using Visual Studio code and when I preview it in the Brave Browser (devtools exactly similar to Google Chrome browser) the list of options appear away from the layout. Not sure how to explain this better.

No CSS is used it's just the default of the browser. Is there a specific css value I need to change? I just copied the code exact from the w3school https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文