Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html ie9 css问题与tbody width_Html_Css_Internet Explorer_Internet Explorer 9 - Fatal编程技术网

Html ie9 css问题与tbody width

Html ie9 css问题与tbody width,html,css,internet-explorer,internet-explorer-9,Html,Css,Internet Explorer,Internet Explorer 9,在IE9中,宽度似乎不适用于我的tbody,请参见下文和中 姓名: 桌子{ 背景:无重复滚动0 0#FFFFFF; 文本对齐:居中; 宽度:100%; } t车身{ 背景:无重复滚动0红色; 显示:内联块; 宽度:360px; } 我做错了什么?尝试使用有效的doctype,如 <!DOCTYPE HTML> <style> table { background: none repeat scroll 0 0 #FFFFFF;

在IE9中,宽度似乎不适用于我的tbody,请参见下文和中


姓名:
桌子{
背景:无重复滚动0 0#FFFFFF;
文本对齐:居中;
宽度:100%;
}
t车身{
背景:无重复滚动0红色;
显示:内联块;
宽度:360px;
}

我做错了什么?

尝试使用有效的doctype,如

<!DOCTYPE HTML>
<style>
table {
            background: none repeat scroll 0 0 #FFFFFF;
            text-align: center;
            width: 100%;
        }

        tbody {
            background: none repeat scroll 0 0 red;
            display: inline-block;
            width: 360px;
        }
</style>

桌子{
背景:无重复滚动0 0#FFFFFF;
文本对齐:居中;
宽度:100%;
}
t车身{
背景:无重复滚动0红色;
显示:内联块;
宽度:360px;
}

感谢您的反馈,我的小提琴和本地主机上的测试站点都已经有了
<!DOCTYPE HTML>
<style>
table {
            background: none repeat scroll 0 0 #FFFFFF;
            text-align: center;
            width: 100%;
        }

        tbody {
            background: none repeat scroll 0 0 red;
            display: inline-block;
            width: 360px;
        }
</style>