html-components

Why DHTML behavior not work in IE8 if document.write is executed in <head>?

你离开我真会死。 提交于 2019-12-10 16:15:52
问题 We have a 3rd party web application which works on in IE6, but not works in IE8. The sample code is like below, the "message from .htc" message will popup in IE6, but not popup in IE8. test.html <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/> <script type='text/javascript'> //if comment the following line, or move this script in <body>, //then HTC will work in IE8 document.write ("<h1>document.write() in <head></h1> some

IE8 rounded corners issue

走远了吗. 提交于 2019-12-08 05:16:07
问题 I've encountered odd problems with rounded corners in IE8. .htc file was used and http://wpdev.net78.net/ looks OK in IE8, however there's a problem with 2 of the corners - 1st is under TEST link and second at the bottom. I've applied the same rules as to the other elements, however this one don't wants to cooperate... Any ideas? 回答1: You should switch to PIE.htc (see http://css3pie.com/). It's a newer and much improved alternative to the old HTMLRemix HTC file you're using. It uses the same

Remove/reset CSS behavior property

前提是你 提交于 2019-12-03 23:47:03
问题 Is it possible to remove the IE-specific behavior CSS property via a more specific rule or the !important declaration? Example: .a-rule { behavior: url(/some.htc); } .a-rule.more-specific { behavior: /*no HTC*/ } I realize that overriding CSS properties is undesirable, but I'm stuck here. On Edit : I'm not sure where people are getting confused about this question. For all purposes, you can consider this already being an IE specific stylesheet. I'm asking how, if .a-rule above exists and is

Remove/reset CSS behavior property

你。 提交于 2019-12-01 02:04:23
Is it possible to remove the IE-specific behavior CSS property via a more specific rule or the !important declaration? Example: .a-rule { behavior: url(/some.htc); } .a-rule.more-specific { behavior: /*no HTC*/ } I realize that overriding CSS properties is undesirable, but I'm stuck here. On Edit : I'm not sure where people are getting confused about this question. For all purposes, you can consider this already being an IE specific stylesheet. I'm asking how, if .a-rule above exists and is immutable, how can one remove the behavior via a more specific rule? A standard CSS equivalent would be:

How to convert any .htc file into .js file?

早过忘川 提交于 2019-11-30 09:10:33
问题 How can I convert any .htc file into .js and use the resulting JavaScript? For example, this is a .htc file: http://curved-corner.googlecode.com/files/border-radius.htc. I want to convert it into .js. I want to convert it because the CMS I'm working with will not allow me to attach the .htc file. I think it's because of a mime type issue. 回答1: It is not possible to convert any .htc file to an "equivalent" .js file. That is, it's not possible automatically, in general . However for the

What is difference between .htc and .js file?

烈酒焚心 提交于 2019-11-29 20:35:23
What is difference between .htc and .js file? Can we convert any .htc file to a .js file? The problem is if we use htc to make png fixes, then we add htc to css file using body { behavior: url("csshover3.htc"); } But this is not W3C valid, so want to convert the .htc to .js and then use as a js file to attach in so it will be W3C valid. Can anyone tell me how to convert and use any .htc file as JavaScript file? Technically, you can use conditional comments to allow the code to validate. http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx A hack is a hack, it's just weird that MS

What is difference between .htc and .js file?

旧街凉风 提交于 2019-11-28 16:39:24
问题 What is difference between .htc and .js file? Can we convert any .htc file to a .js file? The problem is if we use htc to make png fixes, then we add htc to css file using body { behavior: url("csshover3.htc"); } But this is not W3C valid, so want to convert the .htc to .js and then use as a js file to attach in so it will be W3C valid. Can anyone tell me how to convert and use any .htc file as JavaScript file? 回答1: Technically, you can use conditional comments to allow the code to validate.

Using CSS3Pie htc for border-radius in IE8

社会主义新天地 提交于 2019-11-27 20:16:50
I'm using the CSS3Pie htc file to enable border-radius in IE8, but I'm getting no effect. My CSS is: button { border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; behavior: url(PIE.htc); } I've put PIE.htc in the public root (as is done on the CSS3PIE demo page), having tried in the same folder, using a relative uri and an absolute uri. The demos are working; just not my code! Thanks, Adam Daniel Rehner Try adding position:relative; z-index: 0; as suggested here http://css3pie.com/forum/viewtopic.php?f=3&t=10 This question is similar to the one posted here: CSS3 PIE -

Using CSS3Pie htc for border-radius in IE8

僤鯓⒐⒋嵵緔 提交于 2019-11-26 20:15:38
问题 I'm using the CSS3Pie htc file to enable border-radius in IE8, but I'm getting no effect. My CSS is: button { border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; behavior: url(PIE.htc); } I've put PIE.htc in the public root (as is done on the CSS3PIE demo page), having tried in the same folder, using a relative uri and an absolute uri. The demos are working; just not my code! Thanks, Adam 回答1: Try adding position:relative; z-index: 0; as suggested here http://css3pie.com