HTML/CSS How to prevent highlighting text from spanning entire width of page in google chrome

前端 未结 4 2018
孤街浪徒
孤街浪徒 2021-01-05 22:59

Basically when I use Google chrome and highlight text on some websites, the highlight spans the entire width of the browser rather than just highlighting the text. How can C

4条回答
  •  悲哀的现实
    2021-01-05 23:31

    .content{
      display:inline-block;
    }
    

    http://jsfiddle.net/V7ahp/4/

    The solution by CherryFlavourPez, using float, would lead to further complication like the container won't stretch according to the float div inside.

提交回复
热议问题