English 中文(简体)
浏览器的图像重叠。 如何将它们放出?
原标题:Images overlap on browser resize. How to space them out?

I have a photo gallery and my photos are diplayed as thumbnails. When I resize the browser they move as I want them to but instead of getting evenly pushed down on to the next line they instead go down but overlap oeach other.

当浏览器满时,图像显示有罚款。 此处是显示浏览器较小时图像移动和重叠的屏幕:

“entergraph

我目前正在使用这一法典。

div.photoimg
  {
  margin:2px;
  padding: 5px;
  height:auto;
  width:auto;
  float:left;
  text-align:center;
  }
div.img photoimg
  {
  display:inline;
  margin:3px;
  }
div.img a:hover img
  {
  border:1px solid #0000ff;
  }
div.desc
  {
  text-align:center;
  font-weight:normal;
  width:200px;
  margin:2px;
  }

许多人感谢任何帮助。

问题回答

I am not sure, but try instead of div.img photoimg { display:inline; } use div.img photoimg { display:block; }





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签