Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.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 使用Div而不是td创建表需要帮助吗?_Html_Css - Fatal编程技术网

Html 使用Div而不是td创建表需要帮助吗?

Html 使用Div而不是td创建表需要帮助吗?,html,css,Html,Css,您好,我需要一些关于使用div而不是td创建表格数据的帮助。我不是编码专家 结果应该是:(3列3行) 此外,如果我想要更多的行,什么将是确切的代码。我怎么才能把所有这些代码(css和html)放进去呢?希望能对你有所帮助 CSS: .行{ 浮动:左; 宽度:450px; } HTML部分: <div> <div class="Rows" >1st content here</div> <di

您好,我需要一些关于使用
div
而不是
td
创建表格数据的帮助。我不是编码专家

结果应该是:(3列3行)

此外,如果我想要更多的行,什么将是确切的代码。我怎么才能把所有这些代码(
css
html
)放进去呢?

希望能对你有所帮助

CSS:


.行{
浮动:左;
宽度:450px;
}
HTML部分:

    <div>          
        <div class="Rows" >1st content here</div>
        <div class="Rows" >2nd content here</div>
        <div class="Rows">3rd content here</div>
    </div>

第一个内容在这里
第二个内容在这里
第三个内容在这里

有什么原因吗?我知道不建议使用表格来布置页面,但如果您有表格数据,只需使用table@Mohsen可能什么都没有,因为这些是基础。
    <div>          
        <div class="Rows" >1st content here</div>
        <div class="Rows" >2nd content here</div>
        <div class="Rows">3rd content here</div>
    </div>