Jump to content
  • 0

Cum afisez continut in functie de dispozitiv / rezolutie?


gaby

Question

Asa cum probabil stiti, platforma IPB 4.x este responsive. Asta inseamna ca interfata site-ului se redimensioneaza in functie de ecranul dispozitivului de pe care este accesata. In cazul in care doriti sa afisati un anume continut (reclame, imagini, text, etc.) doar pentru o anumita serie de dispozitive, atunci va trebui sa va folositi de urmatoarele linii de cod ce folosesc niste clase css deja existente in script:

<div class='ipsResponsive_hidePhone ipsResponsive_hideTablet'>This is Desktop resolution</div>
<div class='ipsResponsive_hideTablet ipsResponsive_hideDesktop'>This is Phone resolution</div>
<div class='ipsResponsive_hideDesktop ipsResponsive_hidePhone'>This is Tablet resolution</div>

In cazul primei linii de cod, continutul va fi afisat doar pe Desktop. Cea de-a doua linie de cod va afisa continutul div-ului doar pe telefoanele mobile, in timp ce a treia linie de cod va afisa continutul doar pe tablete.

Vedeti si: https://community.invisionpower.com/4docs/advanced-usage/theme-and-design/targeting-mobiletabletdesktop-screens-r139/

Numai bine :pct2:!

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.