首页 \ 问答 \ 如何告诉Microsoft Edge它在阅读模式下应该显示的内容(How to tell Microsoft Edge what it should display in reading mode)

如何告诉Microsoft Edge它在阅读模式下应该显示的内容(How to tell Microsoft Edge what it should display in reading mode)

不知何故,Spartan / Edge的阅读模式似乎选择了网站上的哪个div以阅读模式显示。 在许多页面中,它找不到合适的div(如bbc.co.uk)。 但是, 在我们的网站上 ,它启用了阅读模式,但随后显示了页面中完全错误的部分。

那么 - 我怎么能告诉它采取正确的部分或至少如何在这些页面上禁用它


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


原文:https://stackoverflow.com/questions/31295693
更新时间:2023-01-01 07:01

最满意答案

在分离Gremlin遍历时,您可以使用几种工具。 您可以使用explain()步骤和/或profile()步骤。 explain()步骤将显示遍历策略如何构造和修改遍历策略,以优化其执行。 profile()步骤将提供遍历执行本身的统计信息。

我也会将Gremlin Console本身称为“工具”。 调试Gremlin有时会让我走一条执行遍历小块的路径,以便我可以确定它在步骤列表中的任何给定点返回的内容。 Gremlin控制台,因为它是一个REPL ,它提供了获得代码执行的即时反馈的能力,从而使您摆脱IDE较长的开发周期。


You have several tools at your disposal when picking apart a Gremlin traversal. You can uses the explain() step and/or the profile() step. The explain() step will show how the traversal is composed and modified by Traversal Strategies which optimize its execution. The profile() step will provide statistics on traversal execution itself.

I would also call the Gremlin Console itself a "tool". Debugging Gremlin sometimes takes me down a path of executing smaller chunks of a traversal so that I can determine what it is returning at any given point in the list of steps. The Gremlin Console, as it is a REPL, provides the ability to get immediate feedback on code execution, thus getting you out of the longer development cycle of your IDE.

相关问答

更多
  • 有几种方法可以做到这一点,但首先让我们简化你现有的Gremlin,因为你说它做你想做的事情: g.V().has('user','id','338d219c-3457-4ad8-8172-37a7d897c0df'). out('manages'). hasLabel('client'). out('have'). hasLabel('site'). out('have'). has('job','status', 'In Progress') 请注意, outE().inV()组 ...
  • 在分离Gremlin遍历时,您可以使用几种工具。 您可以使用explain()步骤和/或profile()步骤。 explain()步骤将显示遍历策略如何构造和修改遍历策略,以优化其执行。 profile()步骤将提供遍历执行本身的统计信息。 我也会将Gremlin Console本身称为“工具”。 调试Gremlin有时会让我走一条执行遍历小块的路径,以便我可以确定它在步骤列表中的任何给定点返回的内容。 Gremlin控制台,因为它是一个REPL ,它提供了获得代码执行的即时反馈的能力,从而使您摆脱IDE ...
  • 不是从TinkerPop开始的最简单的遍历。 我改变的第一件事是权重的数据类型。 graph = TinkerGraph.open() g = graph.traversal() a = g.addV('name','a').next() b = g.addV('name','b').next() c = g.addV('name','c').next() d = g.addV('name','d').next() e = g.addV('name','e').next() a.addEdge('conn' ...
  • 你走在正确的轨道上。 查看顶点步骤文档 。 标记边缘,然后从边缘遍历到顶点进行检查,然后跳回边缘以更新属性。 g.V(vertex.id()). outE("votes_for").has("type", "eat").as("e"). inV().has("name", "pizza"). select("e").property("weight", 0.99d). iterate() 完整的Gremlin控制台会话: gremlin> Titan.version() ==>1.0.0 ...
  • 我认为你不能描述Gremlin和Apache TinkerPop之间的“差异”。 TinkerPop是一个开源项目和一个提供图形计算框架的社区。 该框架的核心是Gremlin图遍历语言和虚拟机。 该框架如下图所示: I don't think you can describe a "difference" between Gremlin and Apache TinkerPop. TinkerPop is an open source project and a community that provide ...
  • 您可以使用联合步骤。 g.V() .hasLabel("person") .has("name", "A") .repeat(union(out("friend"), out("read"))) .until(out("friend").count().is(0)) .union(path(), out("read").path()) 应该得到你需要的东西。 用图表定义为 gremlin> :> graph.addVertex(T.label, "p ...
  • python客户端没有createIndex()方法,因为TinkerPop不提供3.x中索引的任何抽象。 我们依赖底层图形数据库的索引和模式创建方法。 您必须下载到该API级别并退出TinkerPop。 如果您只是确定是否使用查询速度创建索引,请记住,图形中只有8800个顶点,而TinkerGraph是内存中的图形。 你可能没有看到速度与少数几个顶点之间存在巨大差异。 如果您想知道您的索引是否已创建,请查阅: gremlin> graph = TinkerGraph.open() ==>tinkergra ...
  • DSEGraph具有多种Text谓词,它们都包含在Java API中。 有关可用的谓词及其说明,请参阅http://docs.datastax.com/en/dse/5.1/dse-dev/datastax_enterprise/graph/using/useSearchIndexes.html 要在Java Fluent API中使用谓词,请参阅http://docs.datastax.com/en/developer/java-driver-dse/1.4/manual/tinkerpop/#searc ...
  • 这是您正在使用的现代图表的图片 您可以看到顶点1是Marko节点,它有三个出边: vertex1 --created--> vertex3 vertex1 --knows--> vertex2 vertex1 --knows--> vertex4 在Gremlin中,这些可以表示为使用顶点步骤 : g.V(1).out('created').next() g.V(1).outE('knows').inV().toList() 根据您的代码,您可能希望在相邻顶点上获取顶点属性 name 。 在这种情况下, ...
  • 我无法提供gremlin-scala解决方案,但您应该很容易转换以下Groovy示例: g.V("A").until(__.not(outE("alpha"))). repeat(out("alpha")).path().by(union(identity(), out("beta")).fold()) 这将返回: [[A, A1], [B], [C, A2]] IMO这就足够了。 但是,如果您需要一组一致的2个条目,则可以执行以下操作: g.V("A").until(__.not ...

相关文章

更多

最新问答

更多
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • 电脑高中毕业学习去哪里培训
  • 电脑系统专业就业状况如何啊?
  • IEnumerable linq表达式(IEnumerable linq expressions)
  • 如何在Spring测试中连接依赖关系(How to wire dependencies in Spring tests)
  • Solr可以在没有Lucene的情况下运行吗?(Can Solr run without Lucene?)
  • 如何保证Task在当前线程上同步运行?(How to guarantee that a Task runs synchronously on the current thread?)
  • 在保持每列的类的同时向数据框添加行(Adding row to data frame while maintaining the class of each column)
  • 的?(The ? marks in emacs/haskell and ghc mode)
  • 一个线程可以调用SuspendThread传递自己的线程ID吗?(Can a thread call SuspendThread passing its own thread ID?)
  • 延迟socket.io响应,并“警告 - websocket连接无效”(Delayed socket.io response, and “warn - websocket connection invalid”)
  • 悬停时的图像转换(Image transition on hover)
  • IIS 7.5仅显示homecontroller(IIS 7.5 only shows homecontroller)
  • 没有JavaScript的复选框“关闭”值(Checkbox 'off' value without JavaScript)
  • java分布式框架有哪些
  • Python:填写表单并点击按钮确认[关闭](Python: fill out a form and confirm with a button click [closed])
  • PHP将文件链接到根文件目录(PHP Linking Files to Root File Directory)
  • 我如何删除ListView中的项目?(How I can remove a item in my ListView?)
  • 您是否必须为TFS(云)中的每个BUG创建一个TASK以跟踪时间?(Do you have to create a TASK for every BUG in TFS (Cloud) to track time?)
  • typoscript TMENU ATagParams小写(typoscript TMENU ATagParams lowercase)
  • 武陟会计培训类的学校哪个好点?
  • 从链接中删除文本修饰(Remove text decoration from links)