Ответ 1
$this->view->headLink()->appendStylesheet('/css/ie.css', 'screen', 'IE');
$this->view->headLink()->appendStylesheet('/css/ie6.css', 'screen', 'IE6');
может кто-нибудь помочь мне с тем, что делать для css для IE (для проекта 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;
?>
ОБНОВЛЕНИЯ::
Это shoudl выглядит как
<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
$this->view->headLink()->appendStylesheet('/css/ie.css', 'screen', 'IE');
$this->view->headLink()->appendStylesheet('/css/ie6.css', 'screen', 'IE6');
Это то, что вы имеете в виду
->appendStylesheet($this->baseUrl('/css/ie6.css'), "screen", 'IE 6')
Раздел с IE 6
in, может быть любым выражением, используемым для включения специальных стилей IE
Надеюсь, что это поможет.