Commit d4888887 authored by hj's avatar hj

更新提交0

parent 1695822f
...@@ -39,6 +39,7 @@ class ChemicalsMsdsService ...@@ -39,6 +39,7 @@ class ChemicalsMsdsService
$bodyStyle['bodyStyle']."</style><body><div class='container'>"; $bodyStyle['bodyStyle']."</style><body><div class='container'>";
$msds_html = preg_replace('/\.sds-cn[\s]*?\{[\s]*?line-height: 1.5;[\s]*?\}/i', '.sds-cn{line-height: 2.5;}', $msds_html); $msds_html = preg_replace('/\.sds-cn[\s]*?\{[\s]*?line-height: 1.5;[\s]*?\}/i', '.sds-cn{line-height: 2.5;}', $msds_html);
$msds_html = preg_replace('/\.sds-cn[\s]*?dd.clearfix[\s]*?\{ margin-left: 20px;\[\s]*?\}/i', '.sds-cn dd.clearfix { margin-left: 20px; table-layout: fixed }', $msds_html);
//$msds_html = preg_replace('/11123/', $bodyStyle['bodyStyle'], $msds_html); //$msds_html = preg_replace('/11123/', $bodyStyle['bodyStyle'], $msds_html);
$msds_html = preg_replace('/<\/body>/', '</div></body>', preg_replace('/11123/', $bodyStyle['bodyStyle'], $msds_html)); $msds_html = preg_replace('/<\/body>/', '</div></body>', preg_replace('/11123/', $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