我对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 它不工作
如果我的回答是正确的,请接受它。 –