[英]Object tag is not working on @media (max-width: 767px)
I am trying to display a PDF file using object
tag in HTML in both desktop and mobile. 我正在尝试在台式机和移动设备中使用HTML中的
object
标记显示PDF文件。 In order to make it responsive I have defined two medias - for min-768px and max-767px. 为了使其具有响应性,我定义了两种媒体-最小768像素和最大767像素。
The object
tag works fine in @media (min-width: 768px)
but it does not work at all in @media (max-width: 767px)
. object
标记在@media (min-width: 768px)
中工作正常,但在@media (max-width: 767px)
。
How to display the PDF in mobile view ( @media (max-width: 767px)
)??? 如何在移动视图中显示PDF(
@media (max-width: 767px)
)???
@media screen and (min-width: 480px)
或,@ @media screen and (min-width: 767px)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.