照片网格Internet Explorer中不需要的底部边距

时间:2015-11-24 00:52:54

标签: html css internet-explorer margin

问题很简单,但在网上冲浪几个小时后,我仍然无法解决问题。我有一个嵌套图像网格的div。一切都工作正常铬,但不是在IE浏览器。由于某些随机原因,它增加了底部边际。哪个我不能摆脱。我试过浮动,clearfix和许多其他的东西,但它只是不会反应。

Colorized image

{COOPER=  Just for the record, are you a progressive, or are you a moderate? >>>   Secretary... >>>   ...thank you... >>>   ...Senator... >>>   Senator Sanders.  A Gallup poll says half the country would not put a socialist in the White House.  You call yourself a democratic socialist.  How can any kind of socialist win a general election in the United States?, SANDERS=  Well, we're gonna win because first, we're gonna explain what democratic socialism is.And what democratic socialism is about  is saying that it is immoral and wrong that the top one-tenth of 1 percent in this country own almost 90 percent - almost - own almost as much wealth as the bottom 90 percent.  That it is wrong, today, in a rigged economy, that 57 percent of all new income is going to the top 1 percent.That when you look around the world, you see every other major country providing health care to all people as a right, except the United States.  You see every other major country saying to moms that, when you have a baby, we're not gonna separate you from your newborn baby, because we are going to have - we are gonna have medical and family paid leave, like every other country on Earth.Those are some of the principles that I believe in, and I think we should look to countries like Denmark, like Sweden and Norway, and learn from what they have accomplished for their working people.(APPLAUSE), CLINTON=  No.  I think that, like most people that I know, I have a range of views, but they are rooted in my values and my experience. And I don't take a back seat to anyone when it comes to progressive experience and progressive commitment.You know, when I left law school, my first job was with the Children's Defense Fund, and for all the years since, I have been focused on how we're going to un-stack the deck, and how we're gonna make it possible for more people to have the experience I had.You know, to be able to come from a grandfather who was a factory worker, a father who was a small business person, and now asking the people of America to elect me president. >>>   I'm a progressive.  But I'm a progressive who likes to get things done.  And I know...(APPLAUSE)...how to find common ground, and I know how to stand my ground, and I have proved that in every position that I've had, even dealing with Republicans who never had a good word to say about me, honestly. But we found ways to work together on everything from... >>>   ...reforming foster care and adoption to the Children's Health Insurance Program, which insures... >>>   ...8 million kids.  So I have a long history of getting things done, rooted in the same values... >>>   ...I've always had.}

CSS:

  <section class="body">
   <div class="bodyContainer" id="photos">
    <img src="images/Ernst Neizvestny.jpg" />
    <img src="images/Erik Boulatov.jpg" />
    <img src="images/Eugene Yelchin.jpg" />
    <img src="images/GeniaChef.jpg" />
    <img src="images/Ilya Kabakov.jpg" />
    <img src="images/KomarAndMelamid.jpg" />
    <img src="images/Kosolapov-Alexander.jpg" />
    <img src="images/Oleg Tselkov.jpg" />
    <img src="images/Lev Meshberg.jpg" />
    <img src="images/Leonid Sokov.jpg" />
    <img src="images/Vassiliev-Oleg.jpg" />
    <img src="images/Rapoport.jpg" />
    <img src="images/Vladimir Nemukhin.jpg" />
    </div>
   </section>

1 个答案:

答案 0 :(得分:0)

在经过大量探讨后,我有点解决了它。第一个问题是2%的利润率。只需将它替换为图像底部和左侧的2%。其次,由于图像都是不同的大小,它为图像本身添加了填充(这只是IE问题)所以我删除了填充。第三,我裁剪图像所以他们都会坚持一个严格的比例。也许是一个简单的出路,但它适用于我的情况。谢谢所有试图帮助的人。

干杯!