Favicon yog daim duab me me uas muaj qhov loj me ntawm 16x16 pixels. Nws tshwm nyob rau hauv nplooj npe thiab mus rau sab laug ntawm lub browser chaw nyob bar. Qee lub tshuab tshawb nrhiav tso tawm cov duab zoo li no nyob ib sab ntawm kev tshawb nrhiav, uas ua rau thaj chaw ntawm tsheb ntau. Txhawm rau ntxiv cov favicon, koj yuav tsum sau cov cai tsim nyog rau hauv HTML nplooj ntawv.
Cov Lus Qhia
Kauj ruam 1
Pom lub cim tsim nyog los teeb lub favicon. Nws yuav tsum yog.ico thiab 16x16 pixels. Cov kev txwv no yuav tsum muaj. Yog tias daim duab tshaj li qhov teev tshwj xeeb, lub kaw lus yuav tsum txo cov cim no ntawm nws tus kheej, uas yuav cuam tshuam rau nplooj ntawv thauj khoom ceev.
Kauj ruam 2
Koj tuaj yeem tsim cov duab siv siv txhua tus kws kho duab duab hauv koj lub computer. Yog tias qhov kev zov me nyuam xaiv tsis txhawb kev txuag nyiaj hauv hom ntawv no, koj tuaj yeem txuag daim duab uas xav tau hauv.png,.jpg
Kauj ruam 3
Thaum koj tus favicon tau tsim, muab nws tso rau hauv cov ntawv tais ceev tseg ib yam li koj cov ntaub ntawv html. Tom qab ntawd qhib lub xaib nplooj ntawv rau kev kho hauv txhua yam ntawv nyeem uas koj siv los tsim lub vev xaib.
Kauj ruam 4
Mus rau ntawm daim ntawv ntu thiab sau cov code coj los ntxig cov duab rau hauv nplooj ntawv tsim. Cov HTML hauv seem no yuav tsum zoo li no:
Kauj ruam 5
Khaws koj cov kev hloov pauv thiab qhib nplooj ntawv kho tiav hauv lub qhov rai browser. Yog tias tag nrho cov ntaub ntawv thiab cov cim npe tau hais kom raug, koj yuav pom lub cim uas koj xav tau hauv lub qhov rai.