Commit 96c7596d authored by hj's avatar hj

更新提交

parent 8278ae5f
...@@ -63,7 +63,7 @@ class ChemicalsMsdsService ...@@ -63,7 +63,7 @@ class ChemicalsMsdsService
$newMsdsHtml = ''; $newMsdsHtml = '';
foreach($dlContent['dlContent'] as $key => $dl){ foreach($dlContent['dlContent'] as $key => $dl){
$msds_html = str_replace($dlContent['title'][$key],'<h2 style="font-size: 1.6rem;font-weight: bold">'.$dlContent['title'][$key].'</h2>', $msds_html); $msds_html = str_replace($dlContent['title'][$key],'<h2 style="font-size: 1.6rem;font-weight: bold">'.$dlContent['title'][$key].'</h2>', $msds_html);
if($key == 0){ if(in_array($key, [0,5,9])){
$dlHtml = ''; $dlHtml = '';
if($dlContent['title'][$key]){ if($dlContent['title'][$key]){
//$dlHtml = '<h2 style="font-size: 20px; text-align: center;" align="center">'.$dlContent['title'][$key].'</h2>'; //$dlHtml = '<h2 style="font-size: 20px; text-align: center;" align="center">'.$dlContent['title'][$key].'</h2>';
......
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