How to tell Microsoft Edge what it should display in reading mode

三世轮回 提交于 2019-12-10 17:43:43

问题


Reading mode in Spartan/Edge seems to choose, somehow, which div on the site to display in reading mode. In many pages, it does not find the appropriate div (like bbc.co.uk). However, on our site, it enables reading mode, but then displays the completely wrong part of the page.

So - how can I tell it to take the right part or at least how to disable it on those pages


回答1:


You can find information on how to optimize reading view, as well as how to opt-out, here: http://dev.modern.ie/testdrive/demos/readingview/

07/10: Edit to include specific information

Specifically, you may be interested in optimizing your title, body, and image markup to ensure a good reading mode experience.

Title

Your page should include a <title> element in the header. In addition, you should include a <meta title=""> tag that matches your main heading in your content section.

Body text

Ensure your main content does not include a lot of deeply nested elements and that font-sizes and other styles are uniform. Style variations for things like pull quotes, etc. should still be fine.

Images

The first eligible image becomes the dominant image of the article. The dominant image is rendered as the first piece of content and given full column width. All following images are rendered as inline images within the article.

Images are recommended to be wrapped in <figure> tags with no more than two <figcaption> tags.

Opting out

Including this meta tag will disable reading mode in IE11 and, currently, Microsoft Edge.

<meta name="IE_RM_OFF" content="true">



回答2:


Add the following Tag

<meta name="IE_RM_OFF" content="true">

Check the Below for more details http://dev.modern.ie/testdrive/demos/readingview/



来源:https://stackoverflow.com/questions/31295693/how-to-tell-microsoft-edge-what-it-should-display-in-reading-mode

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