我的页面中用 text 控件来显示内容,
但字段中的内容太多 ,text 又不能换行 ,
我想当 鼠标移到 text位置时,能通过 tooltiptext方式把内容全部显示出来.
(tooltiptext在vb中有).请问在php中怎么实现内容的功能...?

解决方案 »

  1.   

    用textarea就可以了
    客户端的事扯上php那不是浪费自己精力么
      

  2.   

    <input type="text" title="鼠标悬停时的提示内容"/>
    或者你就复杂一点搞个div悬浮一下
      

  3.   

    楼主的意思应该是这样
    <html>
    <head>
       <title> 111 </title>
    <script>
    show = function(obj){
    obj.title=obj.value;
    }
    </script>
    </head>
    <body>
    <input type="text" id="t" onmouseover="show(this)" />
    </body>
    </html>但我觉得textarea更加省事