人们说我们不能自定义DOM提示框,但是我看到了像xampp管理登录页面这样的服务器提供了多输入对话框。如果我们能自己做的话?
例如,就像这个:
发布于 2016-10-01 18:15:26
您不能操作浏览器提示符,但可以轻松地创建您自己的自定义提示符。这是给你的假人:
#foo {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
background-color: gray;
padding: 30px;
}
<div id="foo">
<p>
Jolly rogers hobble from graces like big plunders.
</p>
<p>
To the sour lettuce add celery, herring, coconut milk and cored zucchini.
</p>
<input >
<input >
<button>
Click me!
</button>
</div>
https://stackoverflow.com/questions/39809898
复制相似问题