我想(1)在Bootstrap 4工具提示中嵌入图片,(2)将图片的高度限制在100像素以下,(3)包含一些描述性HTML格式的文本。
问题:将图片样式设置为max-height:100px ...对我不起作用。
图片和文字显示在工具提示中,但不会应用max-height:100px(以及其他任何样式)。这种样式可能吗?我尝试了不同的浏览器和样式。
这是我尝试的代码:
<div data-toggle="tooltip" data-html="true" title="<img style="max-height:100px !important;" src="http://lorempixel.com/200/100/food/1"><br>some text">mouseover here</div>