所以我正在观看谷歌的Marissa Mayer关于加速谷歌网页的talk。他们发现购物车图标的加载时间增加了2%,然后用户搜索量减少了2%。他们设法用HTML表替换图标。
以下是我尝试绘制购物车:(live example page)
<html>
<head>
<style>
table {border-collapse: collapse;}
th, td {width: 8px; height: 8px;}
th {background-color: blue;}
td {background-color: white;}
</style>
</head>
<body>
<table>
<!-- this row is just to see alignment -->
<tr>
<td></td><td></td><td></td><td></td><td></td>
<td></td><td></td><td></td><td></td><td></td>
<td></td><td></td><td></td><td></td><td></td>
<td></td><td></td><td></td><td></td><td></td>
</tr>
<!-- handle -->
<tr>
<td colspan="14"></td>
<th colspan="3"></th>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="13"></td>
<th colspan="2"></th>
<td colspan="1"></td>
<th colspan="2"></th>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="13"></td>
<th colspan="2"></th>
<td colspan="1"></td>
<th colspan="2"></th>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="14"></td>
<th colspan="3"></th>
<td colspan="3"></td>
</tr>
<!-- main body -->
<tr>
<td colspan="5"></td>
<th colspan="13"></th>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="5"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="5"></td>
<th colspan="1"></th>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<th colspan="1"></th>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="5"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="5"></td>
<th colspan="1"></th>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<th colspan="1"></th>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="5"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="5"></td>
<th colspan="1"></th>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<th colspan="1"></th>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="5"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="5"></td>
<th colspan="1"></th>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<td colspan="1"></td>
<th colspan="1"></th>
<th colspan="1"></th>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="5"></td>
<th colspan="13"></th>
<td colspan="2"></td>
</tr>
<!-- wheels -->
<tr>
<td colspan="7"></td>
<th colspan="2"></th>
<td colspan="4"></td>
<th colspan="2"></th>
<td colspan="5"></td>
</tr>
<tr>
<td colspan="6"></td>
<th colspan="4"></th>
<td colspan="2"></td>
<th colspan="4"></th>
<td colspan="4"></td>
</tr>
<tr>
<td colspan="7"></td>
<th colspan="2"></th>
<td colspan="4"></td>
<th colspan="2"></th>
<td colspan="5"></td>
</tr>
</table>
</body>
</html>
你在表格中绘制什么内容?!给我们留下深刻印象。
答案 0 :(得分:6)
答案 1 :(得分:3)
我为this提取this question因为我累了(他们想要“HTML”,所以我认为这意味着纯 HTML)。这就是我的绘图技巧的极限。
答案 2 :(得分:3)
HTML源代码here(警告:227K解压缩到您浏览器讨厌的6MB HTML文件)。
答案 3 :(得分:1)
答案 4 :(得分:1)
使用不同大小和颜色的边框,您可以创建对角线,并避免像素一样: