Qhov chaw ua haujlwm li cas?
Qhov chaw ua haujlwm li cas?

Video: Qhov chaw ua haujlwm li cas?

Video: Qhov chaw ua haujlwm li cas?
Video: Los Saib Win Vang Qhov Chaw Ua Hauj Lwm 2024, Hlis ntuj nqeg
Anonim

Cov qhov chaw attribute qhia ib tug luv luv hint uas piav txog tus nqi uas yuav tsum tau ntawm ib tug input teb (piv txwv li tus nqi piv txwv los yog ib tug luv luv piav qhia ntawm lub hom phiaj xav). Lus Cim: Cov tus tuav tus cwj pwm ua haujlwm nrog rau cov kev nkag siab hauv qab no: ntawv nyeem, tshawb nrhiav, url, tel, email, thiab password.

Tsis tas li ntawd nug, qhov kev siv qhov chaw yog dab tsi?

Hauv computer programming, a qhov chaw yog ib tug cim, lo lus, los yog hlua ntawm cov cim uas yuav siv sij hawm qhov chaw ntawm cov ntaub ntawv zaum kawg. Piv txwv li, tus programmer yuav paub tias nws xav tau qee tus lej ntawm qhov tseem ceeb lossis qhov hloov pauv, tab sis tseem tsis tau paub tias yuav tsum nkag siab dab tsi.

Tom qab ntawd, lo lus nug yog, ua li cas koj muab qhov chaw nyob style? Lub::placeholder CSS pseudo-element sawv cev rau cov ntawv tso rau hauv ib qho lossis lub ntsiab lus.

  1. ::placeholder {xim: xiav; font-loj: 1.5em; }
  2. input::placeholder {xim: liab; font-loj: 1.2em; font-style: italic; }
  3. input::placeholder {xim: ntsuab; }

Kuj Paub, dab tsi yog qhov chaw?

qhov chaw (plural qhov chaw ) Ib yam dab tsi siv lossis suav nrog ib ntus lossis hloov pauv rau qee yam uas tsis paub lossis yuav tsum nyob twj ywm generic; uas tuav, qhia lossis khaws ib qho chaw rau ib yam dab tsi los tom qab. Qhov no yog qhov chaw cov ntaub ntawv, yog li koj yuav xav suav cov lej tiag tiag thaum koj muaj lawv.

Cov Screen nyeem puas nyeem cov ntawv tso rau hauv?

3 Teb. Screen nyeem ntawv xws li JAWS and NVDA ua tsis yog nyeem placeholder text , nws yog ib qho kev pom ntxiv xwb. Txawm li cas los xij, yog tias koj muab cov ntaub ntawv tseem ceeb pom (xws li hom ntawv rau cov ntaub ntawv nkag) tsis muaj laj thawj koj yuav tsum tsis txhob xa cov ntaub ntawv no mus rau screen nyeem ntawv cov neeg siv thiab.

Pom zoo: