ie6 ie7 ie8 ie9 firefox css hack

來源:互聯網
上載者:User
話就不多說了,直接看執行個體吧!一看就明白了 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>ie6 ie7 ie8 ie9 firefox css hack</title><style type="text/css">#info{ width:150px; height:300px; background:#000;/*firefox*/ background:#f00\0;/*ie9*/ background:#0f0 \9\0;/*ie8 這裡需要注意一下 中間有個空格*/ *background:#00f;/*ie7*/ _background:#ccc;/*ie6*/}</style></head><body><div id="info"></div></body></html>
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.