在div中创建段落文本wrap [英] Making a paragraph text wrap inside a div

查看:259
本文介绍了在div中创建段落文本wrap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里阅读了这篇文章。我有一个简单的目标。我只是想让我的文本在IE 9中换一次。只有两行,我需要它从第一到第二。这不可能是复杂的。我试图添加wrap-text:正常的支持div,但这没有工作。布局是简单的 - 基本上我有一个div包含图像链接和段落。我需要段落包装在div。

I read this post here. I have one simple goal. I just want my text to wrap one time in IE 9. There are only two lines and I need it to wrap from the first to the second. This can not be complicated. I tried adding wrap-text:normal to the supporting div but this did not work. The layout is simple - bascially I have a div containing an image a link and a paragraph. I need the paragraph to wrap inside the div. The text is limited so it will only wrap once.

图片显示当它超过div宽度时,会以一种奇怪的方式打破。

The image show that when it exceeds the div width it breaks in a way that is strange.

这里有很多SO的帖子,但他们看起来像一个蜘蛛网的信息。我正在考虑从头开始重新设计小型订阅源,除非有人对这个看似简单的问题进行了快速修复。

There are alot of SO posts regarding this but they look like a spider web of info. I'm considering redesigning the mini-feed from the ground up unless someone has a quick fix for this seemingly simple issue.

推荐答案

也许这可以帮助你little ..:)

maybe this can help you by a little.. :)

<img src="image.jpg" width="50" height="50" style="float:left;" /><div style="float:left; width:200px; max-width:200px; word-wrap:break-word;">Your text here.</div>

我希望能帮助你..
CMIIW ^ _ ^

I hope that can help you.. CMIIW ^_^

这篇关于在div中创建段落文本wrap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆