E.g:
.container{ width:200px; height:16px;overflow:hidden;font-size:13px; }
<div class="container">
I want to know this sentence's width is bigger than my container div's width
</div>
and if the string inside the container is much longer , is there a way I can animate the string from begin to the end and loop again and again. But if shorter,just stay!!
[update]
With Don's way, the inner element with string's width aways equal the width of container and string was wrapped.So,how can I do to set the inner element's width to be the string's actual length!?
Thank you very much!