Commit f31e1a8b authored by hj's avatar hj

更新提交

parent dc6aa8df
...@@ -67,7 +67,7 @@ class ChemicalsMsdsService ...@@ -67,7 +67,7 @@ class ChemicalsMsdsService
preg_match_all('/<dt>(?<cTitle>[\s\S]*?)<\/dt>[\s]*?<dd>(?<cContent>[\s\S]*?)<\/dd>/i', $dl, $content); preg_match_all('/<dt>(?<cTitle>[\s\S]*?)<\/dt>[\s]*?<dd>(?<cContent>[\s\S]*?)<\/dd>/i', $dl, $content);
if($content){ if($content){
foreach($content['cTitle'] as $k => $c){ foreach($content['cTitle'] as $k => $c){
$dlHtml .= '<div><span style="font-size: 14px; font-weight: bold; margin: 0;">'.$c.'</span>'; $dlHtml .= '<div><span style="margin: 0;">'.$c.'</span>';
$dlHtml .= '<span>'.$content['cContent'][$k].'</span></div>'; $dlHtml .= '<span>'.$content['cContent'][$k].'</span></div>';
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment