工具提示上的未知宽度

时间:2016-02-16 19:03:17

标签: css

我有一个响应工具提示我正在尝试制作,并且不知何故,有一个宽度似乎出现在没有哪里,我只是无法弄清楚为什么它正在做它正在做的事情。如果您查看下面的codepen,它主要是功能的,但出现的tooltip_text不是文本的全宽。它只是......它出现的大小,即使它根本没有宽度。在它上面放100%的宽度使它缩小到工具提示的24px,并且因为我希望它响应,我不能在它上面放一个实心宽度(最大宽度不改变任何东西)。绝对无法弄清楚如何使tooltip_text得到应有的响应,或者甚至弄清楚为什么它出现在除了明显的左右填充之外的宽度。

http://codepen.io/hitokage/pen/rxbBPB

<div class="singleControl tooltip">
    <div class="tooltip_text">Hey this is some kind of tooltip letting you know some information! Hey this is some kind of tooltip letting you know some information! Hey this is some kind of tooltip letting you know some information! Hey this is some kind of tooltip letting you know some information!</div>
</div>

0 个答案:

没有答案