开发者

HTML: Missing image resource has strange effect on ToolTip

开发者 https://www.devze.com 2023-01-14 01:05 出处:网络
I hope someone can help me since I have no clue whats going on here. I have a table with an image in each row (at the beginning).

I hope someone can help me since I have no clue whats going on here. I have a table with an image in each row (at the beginning). Each image has tooltip (title attibute). HTML looks lie this:

<td align="center"> 
<input type="hidden" value="0" />开发者_运维百科;
<img src="/img/prognosis/2green.png" title="Augsburg-Göggingen ">   
</td>

To make the table sortable I added a hidden input with a value, that is the criteria for sorting.

Everything looks fine until I delete the .png file. Then it looks like this:

HTML: Missing image resource has strange effect on ToolTip

The grey rectangle's width is dependant on the tooltip's length. How can this happen? Any help appreciated! THX!


That's strange, what OS / browser are you using? A valid image should have an alt attribute, like <img src="img.png" alt="" />.
It looks like you're using XHTML, but your img tag is not properly closed.

0

精彩评论

暂无评论...
验证码 换一张
取 消