Exemple #1
0
 /**
  * 
  * 是否是远程的css
  * @param array $tagDetail
  */
 protected function isExternalCss($tagDetail = array())
 {
     if (strtolower($tagDetail['tag']) != 'link') {
         return false;
     }
     $attrs = $tagDetail['attrs'];
     $relValue = Fl_Html_Static::getAttrValue($attrs, 'rel');
     if (strpos($relValue, 'stylesheet') !== false) {
         $hrefValue = Fl_Html_Static::getAttrValue($attrs, 'href');
         if ($hrefValue) {
             return true;
         }
         return false;
     }
     return false;
 }