I am trying to achieve a "slide out from right" effect on a div using jquery. I am able to achieve it partially, but not how I need it. I have setup a fiddle.
我正在尝试使用jquery实现“从右滑出”的效果。我能够部分实现它,但不是我需要它的方式。我设置了一个小提琴。
The div nicely slides out, but the text inside it wraps when toggling. Is there a way to prevent the text from wrapping? I went through other SO posts, but couldn't find a solution. I would request you to put up an example if possible.
div很好地滑出,但是当切换时,里面的文本会被包装起来。有什么方法可以阻止文本的包装吗?我浏览了其他SO帖子,但没有找到解决方案。如果可能的话,我想请你举个例子。
Any help will be greatly appreciated.
如有任何帮助,我们将不胜感激。
Thanks in advance!
提前谢谢!
1 个解决方案
#1
4
Fixed it using css. You can look at the fix here:
使用css固定它。你可以看看这里的修正:
http://jsfiddle.net/yJYRZ/4/
You could obviously make this more specific by saying #home p, for example. That's your call.
你可以更具体地说,例如,#home p。这是你的电话。
#1
4
Fixed it using css. You can look at the fix here:
使用css固定它。你可以看看这里的修正:
http://jsfiddle.net/yJYRZ/4/
You could obviously make this more specific by saying #home p, for example. That's your call.
你可以更具体地说,例如,#home p。这是你的电话。