2013-07-24 4 views

답변

1

이 기능이 작동하지 않습니까?

<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery- ui.css"> 
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script> 
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> 
</head> 

<body> 
    <p> 
    <a href="#" title="Anchor description">Anchor text</a> 
    <input title="Input help"> 
    </p> 
<script> 
    $(document).tooltip(); 
</script> 

</body> 

jsFiddle : http://jsfiddle.net/jplahn/JnrBZ/

+0

열 머리글은 JS 파일의 예에서 제공하는 내가 flexigrid 테이블을 사용하고 번호 : https://github.com/paulopmx/Flexigrid/blob/master/demo/index.html – user2349035

1

flexigrid.js 라인 (916)은 아래 colModel 섹션에서

if(cm.title != undefined) {$(th).attr('title', cm.title);} 

를 추가 나는 오해가 있습니다 .. jQuery를 링크에서 http://api.jqueryui.com/tooltip/

해요하지 않는 한

$("#flex1").flexigrid({ 
colModel : [ 
{display: 'MyDC',title: 'My Data Column', name : 'mydatacolumn', width : 100, sortable : true, align: 'center'} 
] 
}); 

그런 다음 title : 속성을 추가 할 수 있습니다.

+0

bummi, 덕분에 내 의견을 편집 봐합니다 좋은. 나는 아직도 그것을하는 방법을 이해하려고 노력하고있다. 죄송합니다 –

0
if(cm.title != undefined) 
    { 
    $(th).attr('title', cm.title); 
    } 

은 나를 위해 작동하지만 오른쪽 상단 열 머리글 만 사용할 수 있으며 다른 열은 사용할 수 없습니다.

관련 문제