【问题标题】:input line height chrome/opera/ie输入行高 chrome/opera/ie
【发布时间】:2011-07-31 01:13:10
【问题描述】:

为什么谷歌浏览器在输入字段之间添加空格?我怎样才能摆脱空白?

http://s1.postimage.org/6djnd25wt/asddsadsdas.jpg

display: block;
float: left;
width: 100px;
text-align: right;
margin-right: 10px;
padding: 0;

【问题讨论】:

    标签: css google-chrome height line opera


    【解决方案1】:

    您需要删除默认的margin。将您的 margin-right 替换为:

    margin: 0 10px 0 0;
    

    这会将它们全部设置为0,并将margin-right 设置为10px

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-02-15
      • 2015-06-26
      • 2010-10-15
      • 1970-01-01
      • 2011-02-12
      • 1970-01-01
      • 2012-11-02
      相关资源
      最近更新 更多