Responsive on mobile device with tables not working within iframe

橙三吉。 提交于 2019-12-05 05:39:58
Mike Flynn

I fixed it with this from this page.

 iframe {
        width: 1px;
        min-width: 100%;
        *width: 100%;
    }

Add

<meta name="viewport" content="width=device-width, initial-scale=1">

inside <head></head>, I guess you missed on that.

I'm not sure if I understand your Question. You want to Scroll the Table on the mobile device right?

So you've to close the iframe in a div;

<div class="scrollablewrapper"></div>

css

.scrollablewrapper {
-webkit-overflow-scrolling: touch;
overflow-y: scroll;
position: fixed; 
right: 0; 
bottom: 0; 
left: 0;
top: 0;
}

.scrollablewrapper iframe {
height: 100%;
width: 100%;
}
Giacomo Paita

You can't make table responsive, unless you use a JS solution.

Furthermore, your table is in an iFrame, so you have to set a scroll to it.

In your media query set the width to the iframe:

#exp-schedule-container {  width: 1200px; }

and set the scroll to the exp-schedule:

#exp-schedule { overflow-x: scroll; }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!