11

IEのcss(ブループリントcssの場合)をどうするか、誰か助けてもらえますか

私はやった

<?php $headlink = $this->headLink();        
    $headlink->appendStylesheet($this->baseUrl('css/blueprint/screen.css') , 'screen, projection')
        ->appendStylesheet($this->baseUrl('css/blueprint/ie.css'), 'screen, projection', "IE")
        ->appendStylesheet($this->baseUrl('css/blueprint/print.css'));
    echo $headlink;
?>

このコードも機能しませんでした

<?php $headlink = $this->headLink();        
    $headlink->appendStylesheet($this->baseUrl('css/blueprint/screen.css') , 'screen, projection')
        ->appendStylesheet($this->baseUrl('css/blueprint/ie.css'), 'screen, projection', true)
        ->appendStylesheet($this->baseUrl('css/blueprint/print.css'));
    echo $headlink;
?>

更新::

それは次のように見えるはずです

<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
4

2 に答える 2

20
$this->view->headLink()->appendStylesheet('/css/ie.css', 'screen', 'IE');
$this->view->headLink()->appendStylesheet('/css/ie6.css', 'screen', 'IE6'); 
于 2011-01-17T13:56:26.693 に答える
5

これはあなたが意味するものですか

->appendStylesheet($this->baseUrl('/css/ie6.css'), "screen", 'IE 6')

in を含むセクションはIE 6、IE 固有のスタイルシートを含めるために使用される任意の式にすることができます

それが役立つことを願っています。

于 2011-01-17T12:31:36.083 に答える