开发者

showing tooltip for html li element in firefox

开发者 https://www.devze.com 2023-01-10 01:52 出处:网络
i want to show tooltip for individual li element for that i am开发者_开发知识库 using title attributes but it is working only in IE not n firefox and chrome what attribute should i use for these two b

i want to show tooltip for individual li element for that i am开发者_开发知识库 using title attributes but it is working only in IE not n firefox and chrome what attribute should i use for these two browser

<ul class="steps">
                    <li class="" id="step1" runat="server" title="Element to Add / edit the Test">Step 1</li>
                    <li class="step2" id="step2" runat="server" title="Add Course Constituents">Step 2</li>
                </ul>


The attribute you are using is correct. This element should be working for you and is part of HTML 4 and available on most elements. W3C Reference. I did a simple test in both Firefox and Chrome and the title attribute on li is rendering as a tool tip for me.

0

精彩评论

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