Yuav Ua Li Cas Kom Ntaus Nqi

Cov txheej txheem:

Yuav Ua Li Cas Kom Ntaus Nqi
Yuav Ua Li Cas Kom Ntaus Nqi

Video: Yuav Ua Li Cas Kom Ntaus Nqi

Video: Yuav Ua Li Cas Kom Ntaus Nqi
Video: yuav ua li cas thiaj muaj nyiaj siv [FWJ XYOOJ] 2024, Kaum ib hlis
Anonim

Kev qeb duas yog qhov ua tau zoo heev vim tias nws tuaj yeem txhawb qhov tseem ceeb hauv kev tsim thiab txhawb nqa cov vev xaib thiab blogs. Xijpeem, nws tuaj yeem saib kom zoo nkauj zoo nkauj. Cov qhua tuaj yeem ntaus nqi qee cov ntaub ntawv ntawm lub xaib lossis blog, yog nws cov lus, cov duab, thiab lwm yam. Hnub no peb yuav los tham txog jQuery plugin uas ua kom muaj kev ntaus nqi. Cov plugin no hu ua "jQuery Star Rating Plugin", nws yog tus neeg siv tau yooj yim thiab siv tau yooj yim thiab tsis tas yuav siv zog ua haujlwm nrog nws. Yog li cia peb sim los tsim kev ntaus nqi rau koj lub xaib.

Yuav ua li cas kom ntaus nqi
Yuav ua li cas kom ntaus nqi

Nws yog qhov tsim nyog

jQuery Lub Hnub Qub Qhov Ntsuas Plugin plugin

Cov Lus Qhia

Kauj ruam 1

Rub tawm jQuery plugin online. Txuas lub tsev qiv ntawv plugin thiab nws cov ntaub ntawv.

Kauj ruam 2

Nrhiav CSS cov ntawv nyob rau hauv plugin archive thiab suav nrog nws.

Nws zoo li qhov no:

Kauj ruam 3

Tsim ib pab pawg ntawm cov xov tooj cua:

Yog li ntawd, yuav muaj ntau lub hnub qub npaum li muaj cov nyees khawm.

Tam sim no koj twb muaj lub siab ua haujlwm, tab sis koj tuaj yeem hloov kho nws.

Kauj ruam 4

Los siv cov zauv seem (qhov ntawd yog, kom tus qhua tuaj yeem xaiv, piv txwv, kev ntsuas 4, 5). Ua li no, siv tus cwj pwm hauv chav kawm. Muab nws ua:

chav kawm = "hnub qub {cais: 2}"

qhov twg 2 yog tus naj npawb ntawm cov ntu uas koj yuav faib cov kab hnub qub.

Yog tias koj xav tau qee lub hnub qub yuav tsum raug xaiv los ntawm lub neej ntawd, tom qab ntawd siv tus cwj pwm = "khij" ntaus cim.

Kauj ruam 5

Txhawm rau ua cov txheej txheem thiab txheeb xyuas cov ntawv pov ntawv tawm suab, nco ntsoov: lub plugin hloov qhov nplooj ntawv chaw, hloov ntawm cov xov tooj cua hauv xov tooj cua, lub npov zais tshwm uas yuav muaj cov ntawv pov ntawv tawm suab.

Rau piv txwv li saum toj no, daim teb no yuav zoo li qee yam:

Hais tias, feem ntau, yog txhua yam. Qhov no yog lub plugin tiag tiag uas tsis tas yuav siv zog ua haujlwm nrog. Hmoov zoo tsim koj tus kheej qeb duas!

Pom zoo: