I am trying to display a PDF file using object
tag in HTML in both desktop and mobile. In order to make it responsive I have defined two medias - for min-768px and max-767px.
The object
tag works fine in @media (min-width: 768px)
but it does not work at all in @media (max-width: 767px)
.
How to display the PDF in mobile view ( @media (max-width: 767px)
)???
@media screen and (min-width: 480px)
或,@ @media screen and (min-width: 767px)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.