Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.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 运输署边境流动电话_Html_Css_Mobile_Html Table - Fatal编程技术网

Html 运输署边境流动电话

Html 运输署边境流动电话,html,css,mobile,html-table,Html,Css,Mobile,Html Table,在移动设备上查看时,tdclass=“pos nochange”周围有一个边框,即使边框设置为0px。有一件事我不明白,为什么当用户在移动设备上放大(放大)时,边界会变大或变小(看起来很不固定) <table style="font-family: Open Sans; font-size:12px; border:0px"> <tbody> <tr> <td style="background-color

在移动设备上查看时,td
class=“pos nochange”
周围有一个边框,即使边框设置为0px。有一件事我不明白,为什么当用户在移动设备上放大(放大)时,边界会变大或变小(看起来很不固定)

<table style="font-family: Open Sans; font-size:12px; border:0px">
    <tbody>
        <tr>
            <td style="background-color: #44445e;" colspan="5" width="300">
                <div id="mleaguetable"></div>
                <div class="live"><span style="font-size:15px">LIVE</span>
                </div>
            </td>
        </tr>
        <tr>
            <th style="background-color: #050528; text-align: center; vertical-align: middle;" colspan="2" height="30"><strong><span style="color: #828293;">Pos</span></strong>
            </th>
            <th style="background-color: #050528; text-align: left; vertical-align: middle;" width="155"><strong><span style="color: #828293; padding: 0 0 0 5px;">Club</span></strong>
            </th>
            <th style="background-color: #050528; text-align: center; vertical-align: middle;" width="50"><strong><span style="color: #828293;">Pld</span></strong>
            </th>
            <th style="background-color: #050528; text-align: center; vertical-align: middle;" width="50"><strong><span style="color: #828293;">Pts</span></strong>
            </th>
        </tr>
        <tr>
            <td style="background-color: #51516d; vertical-align: middle; text-align: right;" width="30" height="30"><span style="color: #ffffff;">1</span>
            </td>
            <td class="pos-nochange" style="background-color: #51516d;"></td>
            <td style="background-color: #51516d; border-right: 1px solid #44445E;"><span style="color: #ffffff; padding: 0 0 0 5px;"><a href="/en-gb/clubs/profile.overview.html/arsenal"><span style="color: #ffffff;">Utd For Utd</span>
                </a>
                </span>
            </td>
            <td style="background-color: #51516d; text-align: center; border-right: 1px solid #44445E;"><span style="color: #ffffff;">5</span>
            </td>
            <td style="background-color: #51516d; text-align: center;"><strong><span style="color: #ffffff;">13</span></strong>
            </td>
        </tr>...</tbody>
</table>

居住
Pos
俱乐部
Pld
Pts
1.
5.
13
...
使用样式规则:

table
{
   border-collapse:collapse;
}

将内联属性
border=”“
添加到表中。

边框折叠:将样式规则折叠到您的
忽略内联样式,最好生成类!尝试使用
!重要信息
。将此代码放在
边框的末尾:1px实心#e1e1!重要的是的,我要去上课,但我只是给你们看,这样你们就可以很容易地发现错误的来源。我将再次尝试更新。我是否做错了?它不起作用。尝试使用手机(右侧边栏的表格)。www.sefcl.sg请说明否决票的理由。对于那些投票只是为了锻炼手指的人,让我引用一句话:“在HTML5中,border属性仅用于指示表格是否用于布局,唯一允许的属性值是”“或“1”。我投了反对票,因为这并不能解释为什么border只出现在
td.pos nochange
上。另外,最好推荐使用CSS来实现这一点,而不是推荐HTML属性。CSS被设计成将设计和标记分开,并且应该这样使用。@BenM从这个标记中我可以看到,所有的样式都是内联的。那么,在这种情况下,分离在哪里呢?请看他的评论:
Yeap,我要讲的是类,但我只是向你们展示,这样你们就可以很容易地发现错误的来源。我将再次尝试更新
OK,然后将
colspan=“5”
放入一个类中?所以如果不行,多加一个内联属性怎么会是一个坏习惯呢?