browser

Using True type fonts in web applications

淺唱寂寞╮ 提交于 2019-12-18 10:58:49
问题 Present I see lot of web sites use true type fonts . I want to to know how to use true type fonts in our applications and does it affect the load time of the pages ? 回答1: Font embedding can be a bit complicated due to browser compatibility issues. For example, Safari only supports SVG fonts. IE only supports .eot, which must first be converted from .ttf I have found the easiest way to use custom fonts is with Google Fonts Besides having the free google font directory to choose from, there are

How to detect Render Mode of browser for current page?

亡梦爱人 提交于 2019-12-18 10:56:06
问题 I know that modern browsers generally have two render mode: standard mode and quirk mode. The browser detects the heading DocType. The question is how to detect render mode of current page at runtime. Is there any Firebug tool to do that? 回答1: Before IE8: alert('Page was rendered in ' + ((document.compatMode == 'CSS1Compat') ? 'Standards' : 'Quirks') + ' Mode.'); For IE8: var vMode = document.documentMode; var rMode = 'IE5 Quirks Mode'; if(vMode == 8){ rMode = 'IE8 Standards Mode'; } else if

How can I detect if IE8 is running in compatibility view?

我是研究僧i 提交于 2019-12-18 10:51:01
问题 Is there anyway to determine if an IE8 browser has compatibility view switched on? I can't seem to find anything on Google, and so I'm wondering if this is a piece of information that is available... Why you ask!? I'm trying to track down a bug in our application. I'm piecing through the Elmah logs and there seems to be a trend; this error is generally thrown by IE8. I tried to repo the defect in my copy of IE8, but couldn't. I want to narrow down the culprits, and thought this might be a way

how to install multiple versions of IE on the same system? [duplicate]

不问归期 提交于 2019-12-18 10:47:33
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Running Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same machine In order to test web pages, currently my page works file with my IE, but not with others. Is it possible to have multiple versions installed ? 回答1: MultipleIE , IETester there are many similar to those. Multiple IE supports IE3 IE4.01 IE5 IE5.5 and IE6 and "is no longer maintained and there are no plans to continue

What is a good tool to aid in browsing/following C code? [closed]

北城以北 提交于 2019-12-18 10:44:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I sometimes need to modify OSS code or other peoples' code (usually C-based, but sometimes C++/Java) and find myself "grep"ing headers for types, function declarations etc. as I follow code flow and try to understand the system. Is there a good tool that exists to aid in code browsing. I'd love to be able to

Digitally sign data in browser using smart card or certificate

Deadly 提交于 2019-12-18 10:41:39
问题 I need to create digital signature of some XML data with a client certificate(smart card) using web browser. Usually I used to do it with a java applet executing on the client side. The benefit being multiplatform in terms of OS and browsers. However this option is getting increasingly harder and harder to implement and support in the long term. Virtually all browsers require some sort of action in order to execute such applet, code signing with a trusted certificate is almost mandatory

Custom scroll bar visualization with HTML/CSS/JavaScript

痞子三分冷 提交于 2019-12-18 10:29:44
问题 I am creating a highly specialized application where I want to experiment with a custom scroll bar. Ideally, I'd disable the built-in scroll-bar and draw my own. The page would look and feel like any other page, just that the scroll bar wouldn't be visible. The arrow keys, the scroll wheel, and any other mean of scrolling the page, should work as excepted on the platform my webapp runs on. One way would be to put the content in a wrapper div that is absolutely positioned, with top: 0; bottom:

Windows phone 8 touch support

天涯浪子 提交于 2019-12-18 10:19:41
问题 Does windows phone 8 fully support touch events within the default browser? Does it work out of the box so that arbitrary touchmove events can be detected by a web-page? I have had issues with some browsers which hijack the touchmove events to use for their interface as a swipe gesture. Does windows phone 8 browser do anything like that? Can anyone point to any documentation about windows phone 8 touch events? EDIT: There is a page here that would allow someone with a wondows phone 8 to test

leverage browser caching - expires or max-age, last-modified or etag

萝らか妹 提交于 2019-12-18 10:04:55
问题 I'm having difficulty finding a clear-cut, practical explanation for what is the correct way to leverage browser caching to increase page speed. According to this site: It is important to specify one of Expires or Cache-Control max-age, and one of Last-Modified or ETag, for all cacheable resources. It is redundant to specify both Expires and Cache-Control: max-age, or to specify both Last-Modified and ETag. Is this correct? If so, should I use Expires or max-age ? I think I have a general

Describe the page rendering process in a browser?

拜拜、爱过 提交于 2019-12-18 09:58:06
问题 First of all, I am not interested in the entire request-response process as addressed by this question What is the complete process from entering a url to the browser's address bar to get the rendered page in browser? I want to know what goes on inside a browser, once it receives the html response from the server. The intent behind asking this question is to understand the inner details of client side scripting. Also it would be beneficial if you can explain in abstract concepts what a web