English 中文(简体)
整个文本中的多功能图像
原标题:Multiple Float Images Throughout Text Article

与安保部存在问题,我认为,如果我不作 j,就能够做些什么,但我并不肯定。

I have an article of text that I want to display with 0-3 images(The number is dynamic for each article). I want to display the 3 images all on the right-hand side of the page, with about 200-300px between them. This much I have achieved just by floating the images, using clear, and margins.

能够做到的那部分是使案文能够从价值200-300页的图像中流出。 我试图将图像推向我想要的那部分的那部分,但案文中为这些图像保留的空白空间却在(即图像在案文顶端)的地方停留。

Is this even possible without js? The text is also completely dynamic, so I can t use any element in the text as an anchor.

EDIT:这里有几部法律解释:

The tags:

<div>
    <img class="floater" src="get_file.asp?image=1"/>
    <img class="floater" src="get_file.asp?image=2"/>
    <img class="floater" src="get_file.asp?image=3"/>
    <p>lots and lots of text and paragraphs go here....</p>
</div>

社会保障局:

.floater
{
    float:right;
    height:250px;
    clear:both;
    margin-top:200px;//This creates space between the images, but the text doesn t flow between them
}
最佳回答

只有通过使用额外帮助因素,你才能做到这一点。

http://jsfiddle.net/kizu/BwySX/“rel=”nofollow。 http://jsfiddle.net/kizu/BwySX/。

你只是增加零宽度的帮助因素,这样他们就会把浮体推向高端,但是,由于这些浮体具有零宽度,案文几乎完全接近它们。

问题回答

无法确定这一点。 边际总是把一切推向双方。

I d divide the text into paragraphs, and have only one image per paragraph. Then the image could float inside it.





相关问题
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!

热门标签