I am using Rails3 + jQuery to build an app using Facebox.
In the facebox, the title text is too big to fit in a single line, so it is being spr开发者_StackOverflow社区ead into two lines. It looks ugly, so I was wondering whether there was a way to either:
- Adjust the size of the title dynamically to fit the facebox width.
- Dynamically adjust the facebox width to fit the title text on a single line.
I think this answer fits your needs: Calculating text width
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论