2008年11月29日星期六

Re: [fw-core] head style problem

you are using the wrong method use headLink instead, headStyle is used
for inline styles.

Heres what I use:

// set css links and a special import for the accessibility styles
$this->_view->headStyle()->setStyle('@import "/css/access.css";');
$this->_view->headLink()->appendStylesheet('/css/reset.css');

2008/11/29 Brandon Peacey <CodeSoftware@cox.net>:
> Hello
>
>
>
> I'm having a problem with headStyle method; every time I try to prepend a
> style ( or append a style for that matter ) it will comment out my style
> sheet directory. Here is an example.
>
>
>
> $view->headStyle()->prependStyle('public/styles/main.css')
>
>
>
> Output:
>
>
>
> <style type="text/css" media="screen">
>
> <!--
>
> public/styles/main.css
>
> -->
>
> </style>
>
>
>
> Can anyone explain to me why this behavior is occurring?
>
> Thank you for your time.

--
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------

没有评论: