如何在按钮之间换行? PHP
How to put a new line between buttons? PHP
$form->addElement( new Element\Button (" Edit " , "button " ));
$form->addElement(new Element\Button);
$form->addElement(new Element\Button ( "Cancel " , "button"));
我用了\n
和PHP_EOL
,但是没有用。新行应位于 EDIT 按钮和新元素之间。
我应该使用 HTML 吗?
将此语句用于新行:
echo '<br/>';
在按钮之间使用 php 样式
$form->addElement( new Element\Button (" Edit " , "button " ));
echo "<br>";
$form->addElement(new Element\Button);
echo "<br>";
$form->addElement(new Element\Button ( "Cancel " , "button"));
$form->addElement( new Element\Button (" Edit " , "button " ));
$form->addElement(new Element\Button);
$form->addElement(new Element\Button ( "Cancel " , "button"));
我用了\n
和PHP_EOL
,但是没有用。新行应位于 EDIT 按钮和新元素之间。
我应该使用 HTML 吗?
将此语句用于新行:
echo '<br/>';
在按钮之间使用 php 样式
$form->addElement( new Element\Button (" Edit " , "button " ));
echo "<br>";
$form->addElement(new Element\Button);
echo "<br>";
$form->addElement(new Element\Button ( "Cancel " , "button"));