如何在DOM元素回显中设置img类?

如何设置img类元素回声?


<div class="allnis" style="padding: 15px; text-transform: uparcase;">

<?php

            foreach($tv_id->networks as $prod){

               echo "<img value='". $tv_id->name ."' src='".$imgurl_1."".$prod->logo_path."'>" ; 

            }              

?>

</div>


大话西游666
浏览 110回答 1
1回答

紫衣仙女

事实上,您可以像设置一样设置类,例如,<div class="allnis" style="padding: 15px; text-transform: uparcase;"><?php foreach($tv_id->networks as $prod){ ?>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img value="<?php echo $tv_id->name ?>" src="<?php echo $imgurl_1.$prod->logo_path ?> class=" ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<?php }&nbsp; &nbsp;?></div>
打开App,查看更多内容
随时随地看视频慕课网APP