使用CSS HTML垂直对齐提交按钮

前端之家收集整理的这篇文章主要介绍了使用CSS HTML垂直对齐提交按钮前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我无法按照我在Internet Explorer中的输入显示提交按钮.在safari和firefox中对齐很好,但IE正在按下按钮约5px.任何想法为什么会发生这种情况或我如何解决它?

网址是http://www.menslifestyles.com
单击页面顶部的订阅,表单将弹出.
两个输入直线对齐,即提交按钮不对齐!

——- ——- HTML

—– CSS ——-

  1. #subscribe{
  2. width:620px;
  3. position:absolute;
  4. top:25px;
  5. left:50%;
  6. margin-left:-120px;
  7. overflow: auto;
  8. z-index: 1000;
  9. background: #ffffff;
  10. color:#6e6e6e;
  11. font-size: 10px;
  12. text-transform: uppercase;
  13. font-family: Helvetica,Verdana;
  14. }
  15. #subscribe input{
  16. border: 1px solid #e5e5e5;
  17. display: inline;
  18. height: 12px;
  19. color:#cccccc;
  20. width: 215px;
  21. }
  22. #subscribe input[type="button"],#subscribe input[type="submit"]{
  23. clear:both;
  24. padding:3px,0px;
  25. -webkit-appearance: none;
  26. font-family: Helvetica,Verdana;
  27. background-color:#cccccc;
  28. text-align:center;
  29. color: #3c3c3c;
  30. font-size:10px;
  31. text-transform: uppercase;
  32. border: none;
  33. cursor: pointer;
  34. display: inline;
  35. height:15px;
  36. width:60px;
  37. position:relative;
  38. margin-left:5px;
  39. }
  40. #subscribe form{
  41. margin:0px;
  42. padding:0px;
  43. }
  44. #subscribe label{
  45. display: inline;
  46. font-size: 10px;
  47. }
  48. #subscribe a{
  49. text-decoration: none;
  50. color: #cccccc;
  51. }
  52. #subscribe #closelink{
  53. padding:0 5px;
  54. }
最佳答案
在#ssubscribe输入[type =“button”]的css中,#subtscribe输入[type =“submit”]尝试添加vertical-align:top;

猜你在找的CSS相关文章