<td title="提示">文字</td>

解决方案 »

  1.   

    <span title="提示文字">哈哈</span>
      

  2.   

    title--------------------------------------------------------------------------------Description
    Specifies advisory information for the element. 
    Res
    Internet Explorer 4.0 renders the title as a ToolTip when the user hovers the mouse over the element. This property has read-write permissions and takes a string. Syntax
    object.title[ = "sMyString"]
    Applies ToA, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, META, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP 
      

  3.   

    <TABLE >
    <TR>
    <TD onmouseover="this.title=this.innerText">文字</TD>
    </TR>
    </TABLE>
      

  4.   

    <body onload='var a=document.getElementsByTagName("TD");for(i=0;i<a.length;i++){a[i].title=a[i].innerText}'>
    <TABLE >
    <TR>
    <TD >文字</TD>
    </TR>
    </TABLE>
     <body>