English 中文(简体)
在撰写一大字时,我会自动断裂线。
原标题:my Div doesn t break lines automatically when writing one big word

我在我的项目中使用一名YUI丰富的文字编辑。 它对我来说是值得称赞的,但我面临一个问题。 当书写图像所示一大字时,它自动打断线。

最佳回答

http://www.w3.org/TR/

div {
    word-wrap: break-word;
}

得到IE.5+、3.5+、 Chrome1.0+、10.5+、Safari1.0+的支持。

或者,你可以在<条码>和>;wbr>标签中总结所有事项,尽管它没有得到操作的支持。

问题回答

页: 1

div{
word-wrap:break-word;
}

迫使案文总结。

http://web Designer Wall.com/tutorials/word-wrap-force-text-to-wrap





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

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

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 ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签