输入文本在 Chrome、FF、Opera 中为粗体,但在 IE6.0 中不是粗体。为什么?
我删除了很多文本、按钮等,因此这个 html 页面看起来很简化。我还是不明白,为什么IE6.0不显示“IE6.0中不加粗。为什么?”的文字。大胆吗? 谢谢。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Test</title>
<style>
input[type='text'], input[type='password'], input[type='button'], input[type='submit'], input[type='file'], textarea {
font-size:16px;
font-weight:bold;
}
</style>
</head>
<body>
<input style="font-size:16px; font-weight:bold;" value="bold" type="text">
<input type="text" value="not bold in IE6.0. Why?">
</body></html>
I removed a lot of text, buttons etc, so this html page looks simplified. I still don't understand, why IE6.0 doesn't display the text "not bold in IE6.0. Why?" as bold?
Thank you.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Test</title>
<style>
input[type='text'], input[type='password'], input[type='button'], input[type='submit'], input[type='file'], textarea {
font-size:16px;
font-weight:bold;
}
</style>
</head>
<body>
<input style="font-size:16px; font-weight:bold;" value="bold" type="text">
<input type="text" value="not bold in IE6.0. Why?">
</body></html>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IE6 不支持属性选择器。
IE6 doesn’t support attribute selectors.