出于某种原因,我无法使用IE9在我的CSS中使用rgba.我已经使用Chrome测试了它,它运行正常.不确定是什么问题.
我的HTML是:
<!doctype html> <html lang="en"> <head> <Meta charset="utf-8" /> <title><?PHP bloginfo('name'); ?> - <?PHP bloginfo('description'); ?></title> <link href="<?PHP bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" /> <link href="http://fonts.googleapis.com/css?family=Raleway:100&v1" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> </head> <body> <?PHP wp_nav_menu(); ?> </body> </html>
我的CSS是:
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,dfn,em,strong,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,select{*font-size:100%;}legend{color:#000;} body { font-size: 62.5%; } .menu { font-size: 5em; font-family: 'Raleway',arial,serif; } .menu ul li a { background: rgba(0,0.5); text-decoration: none; }