开发者

What is wrong in this <div style="position: absolute HTML code?

What am I doing wrong in this HTML code:

    <html>
    <head>
    </head>
    <body>
    <div style="position: absolute; left: 50px; top: 100px; width: 1px; height: 1px; color: red;"></di开发者_Python百科v> 
   </body>
   </html>

I was given it here about an hour ago, but it doesn't work - I don't see a red pixel in my "MS FrontPage" editor


You need to use background-color: red instead of color: red. Voila... a red pixel!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜