PHP 表单按钮?
在 php 中制作表单,但“发送”按钮在浏览器中看起来像垃圾(它只是一个深灰色背景,顶部有“发送”),这以前从未发生过,而且它总是一个漂亮的圆形按钮“弹出”屏幕上,是一个明显的按钮!
Making a form in php, but the "Send" button looks like crap in the browser (its just a dark grey background with "send" on top) this has never happened before, and it was always a nice rounded button that "popped" of the screen, and was an obvious button!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您熟悉 Chrome 的开发人员工具或 Firefox 的 Firebug 吗?如果不是:两者都有方便的工具,可以让您“检查”元素并查看正在应用哪些 CSS 规则。我敢打赌,CSS 规则太宽泛,并且无意中适用于您的输入按钮。
您是否使用 CSS 重置文件?这些有时会很痛苦。不管怎样,CSS Normalize 可能会有所帮助
http://necolas。 github.com/normalize.css/
Are you familiar with Chrome's developer tools, or Firebug for Firefox? In case not: Both have handy tools that let you "inspect" elements and see what CSS rules are applying. I would place my bet that there is a CSS rule that is too broad, and inadvertently applies to your input button.
Are you using a CSS reset file? Those can occasionally be a pain. Either way, a CSS Normalize will probably be of help
http://necolas.github.com/normalize.css/
让 PHP 在 HTML 中生成一个按钮,然后设置该按钮在单击时执行您想要的 PHP 功能。
Make PHP generate a button in HTML, then set the button to perform the PHP function you want when it's clicked.