我正在Joomla网站上的php文件中JUMI链接内执行此操作
这样说-好像是简单的html / css,我想我做错了-
也许它更深入,是因为Joomla文章/模块超越了我的CSS?
PHP / HTML文件:
<html>
<link rel="stylesheet" href="php_scripts/css/login.css" type="text/css">
<body>
<p class="logform">
<form action="http://www.link.com" method="post">
username: <input type="username" name="username"><br>
password: <input type="password" name="passw"><br>
<input type="submit">
</form>
</p>
</body>
</html>
CSS文件:
.logform {
text-align:center;
color:red;
position:fixed;
top:30px;
right:5px;
}
最佳答案
您正在尝试将表格包装到<p>
段落中,这有点无效。
这应该包装在div
元素中。
<div class="logform">
<form action="http://www.link.com" method="post">
username: <input type="username" name="username"><br>
password: <input type="password" name="passw"><br>
<input type="submit">
</form>
</div>