首页 \ 问答 \ IE 10中的垂直滚动条11(Vertical scroll bars in IE 10 11)

IE 10中的垂直滚动条11(Vertical scroll bars in IE 10 11)

我有一个网站在视口上使用垂直滚动条。 www.LinkforCare.org

滚动条在Chrome,FF和IE 9中工作正常。但不在IE 10或11中。鼠标滚轮滚动工作正常,但不拖动滚动条。

该网站使用Bootstrap和jQuery-ui,如果这可能是相关的。

任何人都知道这个问题,并提供解决方案?


I have a website that uses vertical scroll bars on the viewport. www.LinkforCare.org

The scroll bars work fine in Chrome, FF, and IE 9. But not in IE 10 or 11. Mouse wheel scrolling works OK, but not dragging the scroll bar.

The site uses Bootstrap and jQuery-ui, if that may be relevant.

Anyone aware of this issue, and a solution?


原文:https://stackoverflow.com/questions/27929420
更新时间:2023-11-17 15:11

最满意答案

你链接到的文章的问题在于,当作者询问“瓶颈”在哪里时,作者显然不知道他在说什么; 有人拥有比数据库服务器更多的Web服务器的事实并不意味着“数据库不能成为问题所在”。 “数据库是瓶颈”通常意味着什么,这一点与任何曾经对Web应用程序进行运行时分析的人都了解到。

考虑一个需要半秒钟才能返回完整响应的应用程序。 假设你坐下来对其进行分析,并发现处理时间的半秒分解如下:

  • 解析传入的请求:50ms
  • 查询数据库:350ms
  • 呈现HTML响应:50毫秒
  • 发送回应:50ms

如果您看到类似的细分情况,那么数据库查询占应用程序实际运行时间的70%,则您可以正确地断定数据库是瓶颈。 而这正是大多数人在分析他们的应用程序时发现的(并且,通常,数据库如此完全支配处理时间,以至于剩余处理的语言选择没有任何人会注意到任何区别)。

涉及的数据库服务器的数量事实上并不重要; 这里的着名引述是,像你所链接的帖子的作者这样的人是那些听说一个女人需要9个月才能生个孩子的人,并且假设九个女人一起工作可以在一个月内完成。 用数据库术语来说:如果给定的查询需要100毫秒才能在给定的数据库上执行,那么添加更多的数据库服务器并不会使它们中的任何一个能够更快地执行该查询。 添加更多数据库服务器的原因是能够处理更多的并发请求,并防止数据库过载,而不是使隔离请求更快。

然后从那里进行扩展应用程序的常规舞蹈:缓存以减少检索数据或呈现响应的总时间,负载平衡增加可以服务的并发请求数,分片和更高级的数据库设计防止在负荷下沉没等的方案等。

但是,您会注意到,这与使用的编程语言没有任何关系,因为再次,由其他因素所花费或节省的时间大大超过了“快速”获取或丢失的时间量,或者一个“慢”的语言(当然,实际上没有这样的东西;这很大程度上取决于问题领域和程序员的技能,因此你不能进行有意义的一般比较)。

无论如何,这是漫长而漫长的过程,所以我只是将其总结为一条准则:如果你看到有人争辩说“你应该用X语言来建立语言,因为它运行得更快”,这是一个死的东西,他们不会真的不了解真实世界的性能或缩放比例。 因为,毕竟,如果它只是归结为“用最快的语言写作”,他们会建议我们都使用汇编:)


The problem with the article you link to is that the author clearly doesn't really know what he's talking about when he asks where the "bottleneck" is; the fact that someone has more web servers than database servers doesn't mean "the database can't be where the problem is". What's generally meant by "the database is the bottleneck" is the same thing that's been learned by everyone who ever does run-time profiling of a web application.

Consider an application which takes half a second to return a full response. Suppose you sit down and profile it, and find that that half second of processing time breaks down as follows:

  • Parsing incoming request: 50ms
  • Querying database: 350ms
  • Rendering HTML for response: 50ms
  • Sending response back out: 50ms

If you saw a breakdown like that, where database queries constitute 70% of the actual running time of the application, you'd rightly conclude that the database is the bottleneck. And that's exactly what most people find when they do profile their applications (and, generally, the database so completely dominates the processing time that the choice of language for the rest of the processing doesn't make any difference anyone will notice).

The number of database servers involved turns out not to matter too much; the famous quote here is that people like the author of the post you've linked are the types who hear that it takes one woman nine months to have a baby, and assume that nine women working together could do it in one month. In database terms: if a given query takes 100ms to execute on a given DB, then adding more DB servers isn't going to make any one of them be able to execute that query any faster. The reason for adding more database servers is to be able to handle more concurrent requests and keep your DB from getting overloaded, not to make isolated requests go any faster.

And from there you go into the usual dance of scaling an application: caching to cut down on the total time spent retrieving data or rendering responses, load-balancing to increase the number of concurrent requests you can serve, sharding and more advanced database-design schemes to keep from bogging down under load, etc., etc.

But, you'll note, none of this has anything whatsoever to do with the programming language in use because, once again, the amount of time spent or saved by other factors grossly outweighs the amount of time gained or lost by a "fast" or a "slow" language (and, of course, there's really no such thing; so much depends on the problem domain and the skill of the programmer that you just can't have a meaningful general comparison).

Anyway, this is getting kind of long and rambling, so I'll just wrap it up with a general guideline: if you see someone arguing that "you should build in Language X because it runs faster", it's a dead giveaway that they don't really know anything about real-world performance or scaling. Because, after all, if it just came down to "write in the fastest language", they'd be recommending that we all use assembly :)

相关问答

更多
  • http://demo.ilias.de/看看这个lms。 http://demo.ilias.de/ Check out this lms.
  • 我已经尝试过Ruby on Rails,Django(相当于Ruby on Rails的Python)和Drupal。 如果您只是充当系统管理员,Drupal很不错:安装您想要的模块并按原样使用它。 但PHP作为一种编程语言是如此烦人,以至于我讨厌将它用于严肃的事情。 Django有一些奇怪的怪癖,但似乎运作良好。 从MVC的角度来看,Django调用视图“模板”并调用控制器“视图”,这是丑陋的。 另外,不像Rails那样为你生成默认的URL - >控制器/动作映射,Django在工作之前手动设置路由文件。 ...
  • 在这里找不到完整和稳定的解析器后,我决定自己写一个。 这是结果: PHP解析器 :PHP编写的PHP解析器 该项目支持为PHP 5.2和PHP 7.1之间的任何PHP版本编写的代码。 除了解析器本身,库提供了一些相关的组件: 将AST编译回PHP (“漂亮打印”) 用于遍历和更改AST的基础设施 从XML到序列化(以及以可读形式转储) 命名空间名称(别名等)的解析 有关使用概述,请参阅文档的“基本组件的使用”一节。 After no complete and stable parser was found ...
  • 在内存使用方面,它通常是Python> Ruby> PHP,这当然会导致Django> Rails> CakePHP。 不仅仅是记忆,而且还倾向于保持原始表现。 编辑:另外值得注意的是,当然,这里没有绝对。 Ruby有很多使用场景,都会击败Python。 我认为我们都可以同意Ruby和Python总是会击败PHP,尽管:) 下面是一个简单的3向基准测试(用PHP的Symfony来说明): http : //wiki.rubyonrails.com/rails/pages/Framework+Performa ...
  • 尝试MVC3。 它有脚手架和Razor View引擎,它比aspx更好,更健康 try MVC3. It has scaffolding and Razor View Engine which is much better and more htmlish than aspx
  • 当然,你可以在Rails中做到这一点。 首先,您需要为您的请求定义路线。 在routes.rb文件中写下以下内容,位于config / routes.rb: get "/getDate" => "generals#get_date" 这意味着:每当有/getDate的GET请求时,转到控制器GeneralController ,并调用其名为get_date函数。 如果你写了users#get_date ,Rails会尝试在UsersController找到get_date方法。 通过以下命令生成您选择的控 ...
  • 根据这些基准 ,至少从Rails和Django的角度来看,它显然看起来像后者更快 使用ASP.NET MVC,它看起来更像是有某种阴谋,所以没有人真的试图对它进行基准测试:) At least in terms of Rails vs Django it clearly looks like the latter IS faster, according to these benchmarks With ASP.NET MVC it looks more like there is some kind of ...
  • 你链接到的文章的问题在于,当作者询问“瓶颈”在哪里时,作者显然不知道他在说什么; 有人拥有比数据库服务器更多的Web服务器的事实并不意味着“数据库不能成为问题所在”。 “数据库是瓶颈”通常意味着什么,这一点与任何曾经对Web应用程序进行运行时分析的人都了解到。 考虑一个需要半秒钟才能返回完整响应的应用程序。 假设你坐下来对其进行分析,并发现处理时间的半秒分解如下: 解析传入的请求:50ms 查询数据库:350ms 呈现HTML响应:50毫秒 发送回应:50ms 如果您看到类似的细分情况,那么数据库查询占应用 ...
  • 我们可以找到另一种方法。 基本上,我们试图通过使用两个cookie(每个站点创建www.abc.com和www.xyz.com各一个)解决此问题,但由于我们无法找到读取跨域cookie的方式,我们被困住了。 但后来,我偶然发现了forums.asp.net和hotmail的工作方式。 他们使用live.microsoft.com来设置身份验证Cookie。 现在,我们计划创建第三个用于验证用户的网站。 www.abc.com和www.xyz.com中的登录表单将会呼叫第三个网站来设置认证cookie。 使用 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)