2012-07-24 5 views
1

라이브러리 csTransPie을 사용합니다.특정 요소에 대해 csTransPie 사용 안 함

<input type="file">과 같은 특정 요소의 변환을 비활성화하는 방법은 무엇입니까? 당신이 찾을 수있는 내부 파일 csTransPie.js의 말합니다 (unminified 버전), 당신은 $.fn.cTP = function() { ...을 찾을 수 있습니다 향해

답변

1

항목을 추가

HTML

<div id="file-container"></div> 

jQuery를

헬프 친구에 대한
<script type="text/javascript" src="jQuery/jquery-1.7.2.min.js"></script> 
<script type="text/javascript" src="csTransPie/csTransPie-min.js"></script> 
<script type="text/javascript"> 
    $(function() { 
     $('#file-container').html('<input type="file" />');​ 
    }); 
</script> 
+0

@GC., csTransPie를 사용하고 있습니까? IE8에서 입력 파일을 작동시키는 방법을 찾지 못해 포기했습니다. 귀하의 답변에 감사드립니다. – Khrys

+0

나는 한번도 사용하지 못했습니다. :) –

+0

\ o /, 감사합니다 .... – Khrys

1

:

$(':checkbox',this).cTPCheckBox(); 
$(':radio',this).cTPRadio(); 
$(':file',this).cTPFile(); 
$('select',this).cTPSelect(); 

변경이에 :

$('.styleme:checkbox',this).cTPCheckBox(); 
$('.styleme:radio',this).cTPRadio(); 
$('.styleme:file',this).cTPFile(); 
$('select.styleme',this).cTPSelect(); 

그리고 csTransPie에서 스타일을 지정하려는 모든 요소에 대해 styleme 클래스를 추가하십시오. 그렇게해야합니다. 페이지가로드 된 후

+0

감사합니다! – Khrys