更好的HTML代码有什么更好的HTML代码:,这是什么
的情况下1:
<body bgcolor=" #000000" width="100%" height="100%">
</body>
的情况下2:
<body>
<img src="black.jpg" width="100%" height="100%"/>
</body>
似乎情况下1胜或CSS是最好的选择 谢谢。 对不起,我已经编辑了我的问题。
它是这样的:
什么是更好的HTML代码:
的情况下1:
<body bgcolor="<!--Is there a color combination code for a photograph/any css approach ?? -->" width="100%" height="100%">
</body>
的情况下2:
<body>
<img src="your_photo.jpg" width="100%" height="100%"/>
</body>
嘛,我这都在做,因为图片尺寸太大,上网速度很低。当我们设置主题时,我猜twitter也会这样做S(不知道)
您正在使用很多样式属性,而这在现代HTML中并未受到鼓励。 – 2010-12-11 11:44:36
供参考:'#FFF'是'white'的代码。我只提到这个,因为你的图像是用于'black.jpg' – AgentConundrum 2010-12-11 11:44:43
@AgentConundrum你是完全正确的。编辑,使其有意义。 :) – 2010-12-11 11:47:10