IE7 CSS padding issue - cannot figure out

丶灬走出姿态 提交于 2019-12-23 09:48:41

问题


Trying to figure out a rather annoying IE7 CSS issue. For some strange reason on the page below, its padding is appearing to be much larger than normal. No properties I apply seem to fix the issue and I cannot figure out why it is happening. You can see the issue here on the buttons (the main culprit):

Example: http://www.matthewruddy.com/demo/?page_id=1088

Here is the CSS being applied:

.button {
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -khtml-border-radius: 5px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  display: inline-block;
  white-space: nowrap;
}

.button span {
  margin: 0;
  padding: 8px 12px;
  display: inline-block;
  white-space: nowrap;
}

You can see the entire CSS here: http://pastebin.com/Grsxh97H

And the source of the webpage: http://pastebin.com/rW33Nh0D

Thanks to anyone who can shed some light on the issue, Matthew.


回答1:


I've come across this one before.

Simply applying overflow: visible to your buttons will fix it.

I will try to find a reference link.

See:

http://jehiah.cz/a/button-width-in-ie



来源:https://stackoverflow.com/questions/5008500/ie7-css-padding-issue-cannot-figure-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!