該作品是PDF文件格式請下載 福昕PDF閱讀器
jqueryui 基礎(chǔ)教程,有對(duì)每個(gè)控件及屬性,參數(shù)的詳細(xì)解釋
目錄:
目 錄
POSITION 定位工具 .............................................................................................................................. 4
依賴的 JS 庫 ............................................................................................................................................................... 4
調(diào)用方法 ................................................................................................................................................................... 4
參數(shù)說明 ................................................................................................................................................................... 4
ANIMATE 顏色動(dòng)態(tài)改變 ....................................................................................................................... 6
依賴的 JS 庫 ............................................................................................................................................................... 6
調(diào)用方法 ................................................................................................................................................................... 6
參數(shù)說明 ................................................................................................................................................................... 6
ADDCLASS 為匹配元素添加指定樣式 ................................................................................................. 7
依賴的 JS 庫 ............................................................................................................................................................... 7
調(diào)用方法 ................................................................................................................................................................... 7
參數(shù)說明 ................................................................................................................................................................... 7
REMOVECLASS 刪除匹配元素的指定樣式 .......................................................................................... 8
依賴的 JS 庫 ............................................................................................................................................................... 8
調(diào)用方法 ................................................................................................................................................................... 8
參數(shù)說明 ................................................................................................................................................................... 8
SWITCHCLASS 用第二個(gè)參數(shù)指定的 CLASS 替換第一個(gè)參數(shù)指定的 CLASS .................................. 9
依賴的 JS 庫 ............................................................................................................................................................... 9
調(diào)用方法 ................................................................................................................................................................... 9
參數(shù)說明 ................................................................................................................................................................... 9
TOGGLECLASS 切換元素樣式 .......................................................................................................... 10
依賴的 JS 庫 ............................................................................................................................................................. 10
調(diào)用方法 ................................................................................................................................................................. 10
參數(shù)說明 ................................................................................................................................................................. 10
SHOW 增強(qiáng)顯示功能,可接受高級(jí)效果 ............................................................................................. 11
依賴的 JS 庫 ............................................................................................................................................................. 11
調(diào)用方法 ................................................................................................................................................................. 11
參數(shù)說明 ................................................................................................................................................................. 11
部分內(nèi)容:
Position 定位工具
通過設(shè)置【被定位元素的(水平、垂直)位置==目標(biāo)元素的(水平、垂直)位置】定位 ui 構(gòu)建相
對(duì)于 window/document/特定元素/光標(biāo)/鼠標(biāo)的位置。
依賴的 js 庫
Jquery 核心庫
jquery.ui.position.js
調(diào)用方法
$("#position3").position({
my: "right center",
at: "right bottom",
of: "#targetElement"
});