我正在製作網站,並試圖在我的網站上放置一個文本框。我嘗試了一切,似乎沒有任何工作。我需要讓它居中,以便在移動視圖上看起來不錯。以HTML格式居中放置文本框
我看着這個線程
而且我在它試圖解決方案,但毫無效果。
這裏是我嘗試以文本框爲中心的代碼。請記住,我不是試圖將文本居中,我希望整個文本框居中。
.imgUrlText
{
font-family: Futura, 'Trebuchet MS', Arial, sans-serif;
font-size: 12px;
font-style: italic;
font-variant: normal;
font-weight: bold;
}
<input type = "text" class = "imgUrlText" size = "70" id = "urlText" placeholder = "Image Url">
任何幫助,將不勝感激謝謝。
首先解決工作奇觀。謝謝<3 – Catastrophe