{literal}
  <style>
   p {font-size:12px}
  </style>
{/literal}

解决方案 »

  1.   

    'left_delimiter'    => '{{',
    'right_delimiter'   => '}}',
      

  2.   

    Go_Rush :我用了你说的方法不行啊
    这是我的文件
    模板:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>{title}</title>
    {literal}
    <style type="text/css">
    body{background:#369;}
    hr{width:auto;border:2px;border-color:#FFF;}
    h6{font-size:18px;color:#478962}
    </style>
    {/literal}
    </head>
    <body>
    <h6>
    {content}
    </h6>
    <hr>
    </body>
    </html>
    PHP:
      include("./smarttemplate/class.smarttemplate.php");
      $smarty=new SmartTemplate();
      $smarty->template_dir="./template";
      $smarty->temp_dir="./temp";
      $smarty->cache_dir="./cache";
      $smarty->cache_lifetime=1;
      
      $smarty->tpl_file="test1.html";
      $smarty->assign("title","This is SmartyTemplate");
      $smarty->assign("content>","This is a very template for PHP!!!!");
      //$smarty->assign("css",$_REQUEST);
      $smarty->output();
      

  3.   

    将样式写成body{
    ***}这样子就不要紧啦