Commit bbc25e68 authored by hj's avatar hj

更新提交0

parent cb71bff1
......@@ -35,7 +35,7 @@ class ChemicalsMsdsService
preg_match('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i',$msds_html, $bodyStyle);
$msds_html = preg_replace('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i', '11123', $msds_html);
$bodyStyle['bodyStyle'] = "body{ font-family: 'msyh'; font-size: 0.8rem; font-weight: bold; display: block;} " . $bodyStyle['bodyStyle'];
$bodyStyle['bodyStyle'] = "<body><style>body{ font-family: 'msyh'; font-size: 0.8rem; font-weight: bold; display: block;} " . $bodyStyle['bodyStyle']."</style></body>";
$msds_html = preg_replace('/11123/i', $bodyStyle['bodyStyle'], $msds_html);
......
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