Ukusukela oko kuyilo lwewebhu oluphendulayo, abaphuhlisi bebebuza malunga nokwenzeka koyilo lwe-DOM ngokusekwe kubungakanani bayo kanye hayi kubungakanani beendawo zokujonga kwisikhangeli (ngoncedo lwemibuzo yeendaba ). Enyanisweni, imibuzo isikhongozeli (ekuqaleni imibuzo element) mhlawumbi umsebenzi CSS kakhulu bacela ukuba bakhangeli beencwadi ingekabinazo .
Sele zininzi , uninzi , uninzi lwezithuba ezichaza ukuba kutheni kunzima ukubuza imibuzo yesikhongozeli kwi-CSS kwaye kutheni abavelisi besikhangeli benqikaza ukuyenza. Ukuba ufuna ukuyonwabela ngoku, iJavaScript encinci inokunceda:
c51c33e1533e68c3f8fd24633700789f
Yonke le nto ikhangeleka inje:
See the Pen by David Vielhuber (@vielhuber) on CodePen.
Le breakpoints, yokukhetha kunye nesimbo iimpawu zingasetyenziswa ukuchaza breakpoints ezahlukeneyo, umkhethi oluzenzekelayo kunye nohlobo iiklasi longeziwe. Ukuba usebenzisa iskripthi, ungajongana neeklasi ezisandula ukwenziwa ngolu hlobo lulandelayo:
c51c33e1533e68c3f8fd24633700789f
Ukusetyenziswa kwemibuzo yesikhongozeli kubaluleke kakhulu kwizinto ezigqume ngaphezulu, iipopu, iibar esecaleni okanye izinto zesiko- nangoku, umzekelo, ngesikripthi esingentla.