Commit b0b8f41d authored by hj's avatar hj

更新提交

parent fea884a2
...@@ -43,6 +43,8 @@ class ChemicalsMsdsService ...@@ -43,6 +43,8 @@ class ChemicalsMsdsService
$bodyStyle['bodyStyle'] = preg_replace('/\.sds-cn[\s]*?dd.clearfix[\s]*?\{ margin-left: 20px;[\s]*?\}/i', '.sds-cn dd.clearfix { width:80% }', $bodyStyle['bodyStyle']); $bodyStyle['bodyStyle'] = preg_replace('/\.sds-cn[\s]*?dd.clearfix[\s]*?\{ margin-left: 20px;[\s]*?\}/i', '.sds-cn dd.clearfix { width:80% }', $bodyStyle['bodyStyle']);
$bodyStyle['bodyStyle'] = preg_replace('/\.sds-cn[\s]*?dt[\s]*?\{[\s]*?float: left; font-weight: bold; clear: left; [\s]*?\}/i', '.sds-cn dt { float: left; font-weight: normal; clear: left; }', $bodyStyle['bodyStyle']); $bodyStyle['bodyStyle'] = preg_replace('/\.sds-cn[\s]*?dt[\s]*?\{[\s]*?float: left; font-weight: bold; clear: left; [\s]*?\}/i', '.sds-cn dt { float: left; font-weight: normal; clear: left; }', $bodyStyle['bodyStyle']);
$bodyStyle['bodyStyle'] = preg_replace('/\.sds-cn[\s]*?\.list-line[\s]*?li:before[\s]*?\{ content: " —— " \}/i', '.sds-cn .list-line li:before { content: " -- " }', $bodyStyle['bodyStyle']); $bodyStyle['bodyStyle'] = preg_replace('/\.sds-cn[\s]*?\.list-line[\s]*?li:before[\s]*?\{ content: " —— " \}/i', '.sds-cn .list-line li:before { content: " -- " }', $bodyStyle['bodyStyle']);
$bodyStyle['bodyStyle'] = preg_replace('/\.sds-cn[\s]*?p[\s]*?\{[\s]*?margin:[\s]*?0; \}/i', '.sds-cn p { margin: 0 15px;white-space: pre-wra }', $bodyStyle['bodyStyle']);
$msds_html = preg_replace('/<html>/i', '<html lang="zh_CN no-js">', $msds_html); $msds_html = preg_replace('/<html>/i', '<html lang="zh_CN no-js">', $msds_html);
...@@ -83,7 +85,7 @@ class ChemicalsMsdsService ...@@ -83,7 +85,7 @@ class ChemicalsMsdsService
$dlHtml = ''; $dlHtml = '';
foreach($ddContent['cTitle'] as $k => $c){ foreach($ddContent['cTitle'] as $k => $c){
$dlHtml .= '<div style="width:90%"><span style="margin: 0;"><b>'.$c.'</b></span>'; $dlHtml .= '<div style="width:90%"><span style="margin: 0;"><b>'.$c.'</b></span>';
$dlHtml .= '<span style="font-weight: normal;margin-left:15px;white-space: pre-wrap">'.$ddContent['cContent'][$k].'</span></div>'; $dlHtml .= '<span style="font-weight: normal;">'.$ddContent['cContent'][$k].'</span></div>';
} }
} }
$msds_html = str_replace($dl, $dlHtml, $msds_html); $msds_html = str_replace($dl, $dlHtml, $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