我有这组代码,我想应用于我的 iframe,但它不起作用。
@media only screen
and (min-width : 320px)
and (max-width : 480px) {
#postframe article{display:none;}
}
谢谢你。
最佳答案
解决了……我的 iframe 宽度是 960 像素,所以除非你不将宽度更改为 320 像素,否则它无法识别媒体查询!!
谢谢大家
关于css - 如何将媒体查询 CSS 规则应用于 iframe 内容,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10368132/