2011-01-17 8 views
11

के साथ स्टाइलशीट ('सीएसएस/सीएसएस.cएसएस') संलग्न करें क्या कोई मुझे आईई के लिए सीएसएस के लिए क्या करना है (ब्लूप्रिंट सीएसएस के लिए)

मैं

<?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]--> 
+0

कृपया जो भी आप उम्मीद कर रहे हैं उसे जोड़ें और आपका वास्तविक परिणाम क्या है। इसके बारे में जानकारी भी जोड़ें कि यह केवल कौन सा पथ होता है आदि। एक अच्छा प्रश्न पूछने के लिए अक्सर पूछे जाने वाले प्रश्न पढ़ें, इस तरह आपको अपनी सहायता तेजी से मिल जाएगी और इससे आपको और मदद मिलेगी। –

+0

जैसा कि आपने अनुरोध किया है कि यह अपडेट हो गया है। –

उत्तर

19
$this->view->headLink()->appendStylesheet('/css/ie.css', 'screen', 'IE'); 
$this->view->headLink()->appendStylesheet('/css/ie6.css', 'screen', 'IE6'); 
+0

रिचर्ड, इस पर अद्यतन के लिए धन्यवाद। –

5

देखने shoudl इस तुम क्या मतलब है

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

में IE 6 साथ अनुभाग, किसी भी आईई विशिष्ट शैली

आशा है कि मदद करता है सहित के लिए इस्तेमाल किया अभिव्यक्ति हो सकती है है।

संबंधित मुद्दे