Bootstrap popover hides line breaks

后端 未结 6 1016
野趣味
野趣味 2020-12-24 10:44

I am using the html code as follows to show the bootstrap popover



        
6条回答
  •  一个人的身影
    2020-12-24 10:58

    I managed to get this working by adding \n to my popover text where I want the lines to break and adding the following to my stylesheet:

    .popover {
        white-space: pre-line;    
    }
    

    Thanks for the help, everyone!

提交回复
热议问题