2017-09-03 61 views
0

我可以調整在格模樣CTRL + Ť在Photoshop(可調整大小的jquery UI)字體?字體看起來像Ctrl + T鍵在Photoshop

see this image

我想調整與jQuery UI的股利和調整大小DIV 汽車的字體,我不迴應的意思是調整字體看起來像這樣的形象。

回答

0

我覺得這個代碼,我只是做可以幫助你

function createResizable(selector,relativeFontSize) 
 
     {  
 
      \t $(selector).css('font-size',parseInt(($(selector).width() * relativeFontSize)/100)+'px');  \t 
 
\t   $(function() { 
 
\t    $(selector).resizable({ 
 
\t    resize: function (event, ui) { 
 
\t     \t var newFontSize = parseInt((ui.size.width * relativeFontSize)/100); 
 
\t     $(this).css('font-size',newFontSize+'px'); 
 
\t    } 
 
\t    }); 
 
\t   }); 
 
\t   $(selector).resizable({ alsoResize: selector}); 
 
     } 
 

 
     $(document).ready(function(){ 
 
      \t createResizable('#resizable',45); 
 
     });
  #resizable{ 
 
      \t width: 150px; height: 75px; 
 
      \t padding: 0.5em;text-align: center; margin: 0; 
 
     }
<link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel = "stylesheet"> 
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
 
<script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script> 
 
<div id = "resizable" class = "ui-widget-content"> 
 
     Hello 
 
     </div>

+1

你好我TNX您的回答,但是這不回答這個我問題,我說像CTRL + T在Photoshop「伸展「 – Sushiant

+0

對不起,這是我可以給,你可以調整這個代碼來得到你想要的 –

相關問題