阅读背景:

溢出-在动态添加的div上不破字

来源:互联网 

Ingredients for a recipe are dynamically added to a div from an API Ajax call. Each line of text stays on one line, meaning its not breaking and wrapping to the line below. I have tried word-break and overflow-wrap added through a CSS styled class and then adding the class dynamically. I am getting no change. Incidentally, my bullet points wont show up in front of each ingredient line either. Ingredients for a recipe are dynamically added




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: