0
我想知道如何在我的页面中心对齐我的输入。谢谢中心对齐输入
<body>
<input id="ask" type="text" placeholder = "Ex: how tall is the Gateway Arch" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Ex: how tall is the gateway arch'"/>
<style type="text/css">
#ask {
padding: 10px 10px 10px 6px;
font-size:45px;
background-color:#FAFAFA;
min-width: 500px;
padding: 0 auto;
border: 0 none;
</style>
</body>
这只是导致文本被中心对齐:( –
等待等待,使用'margin-left:auto; margin-right:auto' –