admin管理员组文章数量:1310537
Any simple solution to this dilemma? I've tried this possible solution, but it didn't seem to work inside iframes.
Help?
JSFiddle Link
EDIT: I've searched myself online, and they all say specify a percentage. But I don't initially have content in it, and I set designMode to 'On'. Just to mention to filter out useless answers.
Any simple solution to this dilemma? I've tried this possible solution, but it didn't seem to work inside iframes.
Help?
JSFiddle Link
EDIT: I've searched myself online, and they all say specify a percentage. But I don't initially have content in it, and I set designMode to 'On'. Just to mention to filter out useless answers.
Share Improve this question edited May 23, 2017 at 12:05 CommunityBot 11 silver badge asked Jul 14, 2012 at 8:08 ZeriumZerium 17.3k32 gold badges118 silver badges186 bronze badges2 Answers
Reset to default 9Ha, solved! Used javascript:
myiframe.document.body.style.wordWrap = 'break-word';
that did it when put into window.onload
.
Solved, finally!
In CSS you could do it by using
word-wrap: break-word;
本文标签:
版权声明:本文标题:How to wrap text inside an iframe with designMode on, using css and also javascript if necessary? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741804230a2398401.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论