我尝试在正文中移动 Html 元素,但我不知道如何在浏览器中间放置表单标签(必须只有表单标签,没有别的),我想不通怎么做 任何人都可以帮助我并建议我应该阅读哪些主题以最终找出如何移动 html 元素(也许可以链接一些我可以阅读的文章)
From your comments I assume that you are talking about centering your form.
Create your form, for example
<div id="formContainer">
// Your form will go here.
</div>
Then specify some CSS that will center the form
#formContainer
{
position: absolute;
width: 200px;
height: 200px;
left: 50%;
top: 50%;
margin-left: -100px; // Should be -(width/2).
margin-top: -100px; // Should be -(height/2).
}
This will place your form in the middle of the HTML page.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.