flash,css hack,等等。。

1,插入flash,不追求web标准,可以这样简短:

  1. <EMBED src="URL" width="100" height="300" type=application/x-shockwave-flash quality="high"></EMBED>

2,同一选择器针对不同浏览器的css hack
select {
background-color: black;/* firefox, opera, ie8 */
[;background-color: green;]/* safari, chrome */
*background-color: blue;/* ie7 */
_background-color: red;/* ie6 */
}
html*~/**/body select {
border: 5px solid red;/* ie8 */
}以上只是一个例子说明混合写法.以下是对例子的补充
1.IE都能识别*;标准浏览器(如FF)不能识别*;
2.IE7,FF能识别!important,IE6不能.
3.只有IE6能识别_
4.不管是什么方法,书写的顺序都应该是firefox的写在前面,IE7的写在中间,IE6的写在最后面。
5.对于ie8 chrome hack的请 GOOGLE or BAIDU …

Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word