大echo语句不起作用。独立HTML作品

时间:2019-05-04 13:12:00

标签: php echo

我正在尝试回显一些要在循环中使用的HTML。 但是我在运行它时遇到了解析错误。 当我复制HTML代码并将其作为HTML文件运行时,效果很好。

这是echo语句:

    echo "<div class='image'><div class='sold'><p class='overlay'>SOLD</p></div><img src='images/Showroom-images/Focus-Vignale-1.jpg' alt='Ford Focus' width='300px' /></div><div class='info'><div class='title'><h1>All-New Ford Focus Vignale (182PS) | <span>Price: $29,497</span></h1></div><div class='body'><div class='RTable'><div class='RRow'><div class='RCell'><strong>Year:</strong></div><div class='RCell'>2017</div><div class='RCell'><strong>GearBox:</strong></div><div class='RCell'>Automatic</div></div><div class='RRow'><div class='RCell'><strong>Colour:</strong></div><div class='RCell'>Oxford White</div><div class='RCell'><strong>Fuel Type:</strong></div><div class='RCell'>Diesel</div></div><div class='RRow'><div class='RCell'><strong>Engine Size:</strong></div><div class='RCell'>1997</div><div class='RCell'><strong>Mileage:</strong></div><div class='RCell'>16500 miles</div></div></div></div><div class='buttons'><a href=""><button type='button' class='enquire'>Enquire</button></a><a href=""><button type='button' class='details'>More Details</button></a></div></div>";

0 个答案:

没有答案