Home >Web Front-end >CSS Tutorial >css hack how to distinguish ie7 ie8

css hack how to distinguish ie7 ie8

高洛峰
高洛峰Original
2016-11-24 11:46:541391browse

.style {      width:100px;  /*火狐以及一般浏览器*/
      width:200px\9;                 /*IE8*/ 
      *width:150px;  /*IE7*/
      _width:50px;  /*IE6*/
      height:100px;
      border:1px solid red;
}


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn