在文本之后放置图像而不在行之间添加空格

时间:2015-07-26 19:04:48

标签: html css image css-position

在这个小提琴https://jsfiddle.net/spdvoc06/中,最后一行被拉伸以放置图像。任何人都可以帮忙解决它吗?我需要在文本之后放置第二个图像而不在行之间添加空格。

<img src="https://www.getdesignschool.com/wp-content/uploads/2015/07/up.jpg" alt="" width="56" height="44" />
<p style="display:inline;">I want to learn how to design but I spend so much time just reading I never remember it all. I need something that teaches me in practical way, and gives me feed-back on what I've created...
</p>
<img src="https://www.getdesignschool.com/wp-content/uploads/2015/07/bottom.jpg" alt="" width="56" height="44" />

3 个答案:

答案 0 :(得分:1)

看起来需要添加所有内容才能实现这一目标,最后一张照片是&#34; vertical-align:top&#34;

我添加了它并为您复制了代码。希望这有帮助!

position:absolute

https://jsfiddle.net/spdvoc06/

答案 1 :(得分:1)

[HttpGet, Route("SomeMethod/{id}")] public string SomeMethod(string Id) { return "string"; } [HttpGet, Route("SomeMethod/{id:int}")] public string SomeMethod(int Id) { return "int"; } 添加到最后一张图片

https://jsfiddle.net/y93su8s1/2/

答案 2 :(得分:0)

display:inline-blockwidth添加到paragraph会解决问题。

演示:https://jsfiddle.net/spdvoc06/1/