Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.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和css布局TictaToe_Html_Css - Fatal编程技术网

如何在网页上使用html和css布局TictaToe

如何在网页上使用html和css布局TictaToe,html,css,Html,Css,我的问题是,在制作TictaToe之前,我应该研究哪些html和css特性 我目前正在使用带有丑陋的X和O字符的CSS的HTML表: 我的CSS: table tr td { border: 1px solid; } 我的HTML: <table> <tr> <td>O</td><td></td><td></td> </tr> <t

我的问题是,在制作TictaToe之前,我应该研究哪些html和css特性

我目前正在使用带有丑陋的X和O字符的CSS的HTML表:

我的CSS:

table tr td {
    border: 1px solid;
}
我的HTML:

<table>
    <tr>
        <td>O</td><td></td><td></td>
    </tr>
    <tr>
        <td></td><td>X</td><td></td>
    </tr>
    <tr>
        <td></td><td></td><td>X</td>
    </tr>
</table>

O
X
X

给你的
td
s一个固定的宽度和高度,并且:

表格{
边界塌陷:塌陷;
}
运输署{
边框:5px实心#000;
宽度:100px;
高度:100px;
线高:100px;
文本对齐:居中;
}
你也应该调查一下



,但剩下的就看你了。

谢谢。除了如何使用X字符外,这应该是我所需要的一切。@robertking-Use
×用于X字符。看我的小提琴。边界崩溃有什么好处?因为我拿走了你的小提琴,所以没有change@Usman-它没有变化,因为它是通过自动设置的,自动包含在小提琴中。看到区别了吗?添加一些unicode css使您的字符更漂亮