开发者

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

开发者 https://www.devze.com 2022-12-26 03:48 出处:网络
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;\"><

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

精彩评论

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

关注公众号