Favicon (Favourite Icon) yog 16-pixel square icon uas browser ntawm tus xaib nplooj qhua pom nyob rau hauv qhov chaw nyob bar. Yog tias nplooj ntawv ntxiv rau cov neeg nyiam, daim duab yuav tshwm nyob rau ntawd thiab. Tsis tas li ntawd, muaj cov favicon tshwm hauv cov npe tshawb ntawm Yandex cov chaw. Tag nrho cov no ua ke tuaj yeem pab tau rau kev kos duab rau hauv lub xaib.
Cov Lus Qhia
Kauj ruam 1
Tsim ib lub cim, txuas mus rau qhov uas yuav xav tau muab tso rau hauv nplooj ntawv ntawm lub xaib. Tej cov editor duab yog haum rau qhov no. Siv 16 los ntawm 16 pixel loj - qee qhov browser tuaj yeem ua cov cim loj dua, tab sis nws zoo tshaj plaws kom ncav cuag ntau lub vev xaib raws li qhov ua tau.
Kauj ruam 2
Txuag cov duab npaj tau hauv ico. Cov browser niaj hnub tuaj yeem nkag siab txog cov favicons hauv cov ntaub ntawv nrog qhov txuas ntxiv gif, png, bmp, thiab lwm yam, tab sis kom npog tus naj npawb ntawm ntau qhov browser hloov kho, nws zoo dua yog siv hom cim icon ntawm hom no. Yog tias koj tus kws sau ntawv kos duab tsis txhawb lub ico format, ces koj tuaj yeem khaws nws, piv txwv, hauv hom ntawv gif, thiab tom qab ntawd hloov nws mus rau ico siv ib qho ntawm cov kev pabcuam online. Nyob rau hauv net koj tuaj yeem nrhiav cov kev pabcuam uas yuav muab koj lub voj voog tag nrho ntawm kev tsim lub icon online ncaj qha hauv qhov browser.
Kauj ruam 3
Rub tawm lub cim mus rau tus neeg rau zaub mov ntawm koj lub xaib thiab khaws nws rau hauv cov ntawv muaj npe favicon.ico - lub npe no tau nkag siab los ntawm txhua qhov browser kho nyob rau hauv tib txoj kev, txawm hais tias lub npe tsis tseem ceeb rau qee yam ntawm lawv. Yog tias nplooj ntawv nplooj ntawv tsis muaj qhov chaw nyob ntawm cov ntaub ntawv no, tom qab ntawd browser thiab tshawb robots los ntawm kev saib nws rau nws hauv cov cag ntoo ntawm lub xaib, yog li nws yog qhov zoo tshaj plaws los muab cov ntaub ntawv nyob ntawd.
Kauj ruam 4
Ntxig HTML cim npe rau hauv cov cai ntawm nplooj ntawv qhia cov ntawv upload. Rau Internet Explorer, lub cim no yuav tsum zoo li no:
Txog lwm browsers, nws yuav tsum sau txawv:
Ntxiv ob kab txhawm rau paub tseeb cross-browser sib xyaw. Yog tias cov ntawv no tau muab tso rau hauv lub nplaub tshev uas tsis yog lub hauv paus ntawv, qhia kom meej txoj hauv kev mus rau qhov chaw hauv href attribute. Cov kab no yuav tsum tau muab tso rau hauv nqe taub hau ib feem ntawm cov ntaub ntawv web, uas yog, nruab nrab ntawm daim thiab cim npe.