[英]How can I style these echo statements that make up my form
I want to style these echo statements like a login form
. 我想将这些echo语句设置为login form
样式。 How can I style these echo statements? 如何设置这些echo语句的样式?
echo '<form action="login.php" method="post"><input type="hidden" name="ac" value="log"> ';
echo 'Username: <input type="text" name="username" />';
echo 'Password: <input type="password" name="password" />';
echo '<input type="submit" value="Login" />';
echo '</form>';
Try Following snipets 尝试关注片段
echo '<style>.testclassName{ text-align:right; }</style>';
echo '<form action="login.php" method="post"><input type="hidden" name="ac" value="log"> ';
echo 'Username: <input type="text" name="username" class="testclassName"/>';
echo 'Password: <input type="password" name="password" />';
echo '<input type="submit" value="Login" />';
echo '</form>';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.