我對IE9瀏覽器中的CSS問題感到非常困惑。我有一個網頁textarea
與placeholder
。我想text-align: center;
只是佔位,:-ms-input-placeholder在Windows 7操作系統中的IE9中不工作
輸入文字的text-align設置爲left。
下面請看看我的編輯。
的Html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style>
textarea {
width: 80%;
height: 80px;
}
::-webkit-input-placeholder {
text-align: center;
}
:-moz-placeholder {
text-align: center;
}
::-moz-placeholder {
text-align: center;
}
:-ms-input-placeholder {
text-align: center;
}
</style>
</head>
<body>
<textarea rows="2" cols="21" id='txtnote' class="testplaceholder" maxlength="500" placeholder="Note" onblur=""></textarea>
</body>
</html>
一切都在工作正常IE 11,火狐,Chrome在Windows 8,但是當我到IE9在Windows看看這個網頁7 它不工作
如果我的回答是正確的,請接受它。 –