大猫 (Madao) - まるでダメなおっさん

CSS河马

by bigCat 21 Comments
o

o

o

o

(

O

O

O

\

L

(

O

O

O

O

O

\

L

(

O

|

|

\

\

|

|

\

\

\

\

(

(

8

o

o

o

(

(

8

o

o

o

o

)

)

b

o

O

o

o

o

o

o

o

)

b

o

O

o

o

o

o

o

o

o

o

o

/

/

/

_

_

_

C

C

O

(

喜欢王小峰的同学肯定喜欢熟悉The Simpsons里的巴特

呃,有位牛人(西班牙语)用纯HTML+CSS画出巴特的爸爸河马,本帖那个就是不是图片,想起了多年前也有个牛头人用纯HTML做了一幅Linux企鹅图,哈哈真怀念

在主流浏览器下都能正常显示,

  • Internet Explorer 5.5, 6 , 7
  • Opera 9
  • FireFox 2 3beta
  • Safari 3

下面是全部源代码:

<div style=”width: 100%; height: 466px;”>
<div style=”float: left; border: 2px solid #000; line-height: normal; background-color: #fff;”>
<div style=”width: 6.23em; height: 7.7em; font-family: Verdana; font-size: 60px; overflow: hidden;”>
<div style=”margin-top: -0.7em”>
<div style=”position: absolute; padding-left: 1.56em; padding-top: 0.37em;”>
<div style=”font-size: 2.57em; font-weight: bold; color: #000;”>o</div>
</div>
<div style=”position: absolute; padding-left: 1.62em; padding-top: 0.53em;”>
<div style=”font-size: 2.38em; font-weight: bold; color: #fff;”>o</div>
</div>
<div style=”position: absolute; padding-left: 1.2em; padding-top: 0.67em;”>
<div style=”font-size: 2.48em; color: #000;”>o</div>

</div>
<div style=”position: absolute; padding-left: 1.29em; padding-top: 0.85em;”>
<div style=”font-size: 2.23em; color: #fff;”>o</div>
</div>
<div style=”position: absolute; padding-left: 1.57em; padding-top: 2.03em;”>
<div style=”width: 0.32em; height: 0.52em; background-color: #fff;”></div>
</div>
<div style=”position: absolute; padding-left: 1.52em; padding-top: 1.56em;”>
<div style=”font-size: 0.8em; font-style: italic; color: #000;”>(</div>
</div>
<div style=”color: #000;”>
<div style=”position: absolute; padding-left: 1.07em; padding-top: 0.62em;”>
<div style=”font-size: 4.57em;”>O</div>
</div>

<div style=”position: absolute; padding-left: 1.05em; padding-top: 1.15em;”>
<div style=”font-size: 3.53em;”>O</div>
</div>
<div style=”position: absolute; padding-left: 1.12em; padding-top: 0.74em;”>
<div style=”font-size: 4.63em;”>O</div>
</div>
<div style=”position: absolute; padding-left: 1.08em; padding-top: 3.64em;”>
<div style=”font-size: 1.77em; font-weight: bold; font-style: italic;”>\</div>
</div>
<div style=”position: absolute; padding-left: 1.17em; padding-top: 4.8em;”>
<div style=”font-size: 3.29em; font-weight: bold; font-style: italic;”>L</div>
</div>
<div style=”position: absolute; padding-left: 3.14em; padding-top: 5.21em;”>

<div style=”font-size: 3.01em; font-weight: bold; font-style: italic; height: 0.96em; overflow: hidden;”>(</div>
</div>
<div style=”position: absolute; padding-left: 4.13em; padding-top: 3.23em;”>
<div style=”font-size: 0.7em; font-weight: bold;”>O</div>
</div>
<div style=”position: absolute; padding-left: 1.37em; padding-top: 5.08em;”>
<div style=”font-size: 0.97em; font-weight: bold;”>O</div>
</div>
</div>
<div style=”color: #FED90E”>
<div style=”position: absolute; padding-left: 1.15em; padding-top: 0.76em;”>
<div style=”font-size: 4.37em;”>O</div>
</div>

<div style=”position: absolute; padding-left: 1.14em; padding-top: 1.26em;”>
<div style=”font-size: 3.37em;”>O</div>
</div>
<div style=”position: absolute; padding-left: 1.2em; padding-top: 0.87em;”>
<div style=”font-size: 4.42em;”>O</div>
</div>
<div style=”position: absolute; padding-left: 1.15em; padding-top: 3.61em;”>
<div style=”font-size: 1.7em; font-weight: bold; font-style: italic;”>\</div>
</div>
<div style=”position: absolute; padding-left: 1.24em; padding-top: 4.93em;”>
<div style=”font-size: 3.18em; font-weight: bold; font-style: italic;”>L</div>
</div>
<div style=”position: absolute; padding-left: 3.03em; padding-top: 5.05em;”>

<div style=”font-size: 3.2em; font-weight: bold; font-style: italic; height: 0.96em; overflow: hidden;”>(</div>
</div>
<div style=”position: absolute; padding-left: 4.18em; padding-top: 3.34em;”>
<div style=”font-size: 0.55em; font-weight: bold;”>O</div>
</div>
</div>
<div style=”position: absolute; padding-left: 1.84em; padding-top: 2.37em;”>
<div style=”width: 1.92em; height: 5.76em; background-color: #FED90E;”></div>
</div>
<div style=”position: absolute; padding-left: 3.70em; padding-top: 2.73em;”>
<div style=”width: .30em; height: 1.56em; background-color: #FED90E;”></div>
</div>
<div style=”position: absolute; padding-left: 4.36em; padding-top: 3.51em;”>
<div style=”width: .16em; height: .34em; background-color: #FED90E;”></div>
</div>

<div style=”position: absolute; padding-left: 1.62em; padding-top: 5.47em;”>
<div style=”font-size: 10px”>
<div style=”width: 2.6em; height: 3.0em; background-color: #FED90E;”></div>
</div>
</div>
<div style=”color: #000;”>
<div style=”position: absolute; padding-left: 1.23em; padding-top: 4.57em;”>
<div style=”font-size: 0.67em;”>|</div>
</div>
<div style=”position: absolute; padding-left: 1.23em; padding-top: 4.37em;”>
<div style=”font-size: 0.67em;”>|</div>
</div>
<div style=”position: absolute; padding-left: 1.34em; padding-top: 4.37em;”>
<div style=”font-size: 0.67em;”>\</div>

</div>
<div style=”position: absolute; padding-left: 1.4em; padding-top: 4.53em;”>
<div style=”font-size: 0.67em;”>\</div>
</div>
<div style=”position: absolute; padding-left: 1.55em; padding-top: 4.49em;”>
<div style=”font-size: 0.67em;”>|</div>
</div>
<div style=”position: absolute; padding-left: 1.55em; padding-top: 4.19em;”>
<div style=”font-size: 0.67em;”>|</div>
</div>
<div style=”position: absolute; padding-left: 1.66em; padding-top: 4.19em;”>
<div style=”font-size: 0.67em;”>\</div>
</div>

<div style=”position: absolute; padding-left: 1.76em; padding-top: 4.45em;”>
<div style=”font-size: 0.67em;”>\</div>
</div>
<div style=”position: absolute; padding-left: 1.27em; padding-top: 2.54em;”>
<div style=”font-size: 0.42em; font-weight: bold; font-style: italic;”>\</div>
</div>
<div style=”position: absolute; padding-left: 1.51em; padding-top: 2.18em;”>
<div style=”font-size: 0.42em; font-weight: bold; font-style: italic;”>\</div>
</div>
<div style=”position: absolute; padding-left: 2.31em; padding-top: 5.32em;”>
<div style=”font-size: 1.47em; font-weight: bold; font-style: italic;”>(</div>
</div>
<div style=”position: absolute; padding-left: 2.29em; padding-top: 5.69em;”>

<div style=”font-size: 1.11em; font-weight: bold;”>(</div>
</div>
<div style=”position: absolute; padding-left: 2.92em; padding-top: 4.72em;”>
<div style=”font-size: 2.4em; font-weight: bold;”>8</div>
</div>
<div style=”position: absolute; padding-left: 2.43em; padding-top: 3.96em;”>
<div style=”font-size: 3.13em; font-weight: bold; font-style: italic;”>o</div>
</div>
<div style=”position: absolute; padding-left: 2.31em; padding-top: 4.05em;”>
<div style=”font-size: 3.13em; font-weight: bold; font-style: italic;”>o</div>
</div>
<div style=”position: absolute; padding-left: 2.33em; padding-top: 4.37em;”>
<div style=”font-size: 3.06em; font-weight: bold;”>o</div>

</div>
</div>
<div style=”color: #CDB26F”>
<div style=”position: absolute; padding-left: 2.39em; padding-top: 5.36em;”>
<div style=”font-size: 1.38em; font-weight: bold; font-style: italic;”>(</div>
</div>
<div style=”position: absolute; padding-left: 2.37em; padding-top: 5.75em;”>
<div style=”font-size: 1.04em; font-weight: bold;”>(</div>
</div>
<div style=”position: absolute; padding-left: 2.95em; padding-top: 4.82em;”>
<div style=”font-size: 2.25em; font-weight: bold;”>8</div>
</div>
<div style=”position: absolute; padding-left: 2.49em; padding-top: 4.15em;”>
<div style=”font-size: 2.93em; font-weight: bold; font-style: italic;”>o</div>

</div>
<div style=”position: absolute; padding-left: 2.39em; padding-top: 4.22em;”>
<div style=”font-size: 2.93em; font-weight: bold; font-style: italic;”>o</div>
</div>
<div style=”position: absolute; padding-left: 2.4em; padding-top: 4.5em;”>
<div style=”font-size: 2.87em; font-weight: bold;”>o</div>
</div>
</div>
<div style=”position: absolute; padding-left: 2.98em; padding-top: 6.09em;”>
<div style=”width: .76em; height: 1em; background-color: #CDB26F;”></div>
</div>
<div style=”color: #000″>
<div style=”position: absolute; padding-left: 3.69em; padding-top: 4.28em;”>
<div style=”font-size: 2.2em;”>o</div>

</div>
<div style=”position: absolute; padding-left: 4.62em; padding-top: 5.42em;”>
<div style=”font-size: 1.01em;”>)</div>
</div>
<div style=”position: absolute; padding-left: 4.78em; padding-top: 5.72em;”>
<div style=”font-size: 0.72em;”>)</div>
</div>
<div style=”position: absolute; padding-left: 4.53em; padding-top: 5.65em;”>
<div style=”font-size: 0.94em;”>b</div>
</div>
<div style=”position: absolute; padding-left: 4em; padding-top: 5.09em;”>
<div style=”font-size: 1.59em; font-weight: bold;”>o</div>
</div>

<div style=”position: absolute; padding-left: 3.33em; padding-top: 4.79em;”>
<div style=”font-size: 1.95em; font-weight: bold;”>O</div>
</div>
<div style=”position: absolute; padding-left: 3.15em; padding-top: 4.3em;”>
<div style=”font-size: 2.42em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 3.01em; padding-top: 4.46em;”>
<div style=”font-size: 2.23em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 2.88em; padding-top: 4.43em;”>
<div style=”font-size: 2.23em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 2.81em; padding-top: 4.71em;”>

<div style=”font-size: 1.9em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 3.69em; padding-top: 4.74em;”>
<div style=”font-size: 1.97em; font-weight: bold;”>o</div>
</div>
</div>
<div style=”color: #CDB26F”>
<div style=”position: absolute; padding-left: 3.7em; padding-top: 4.4em;”>
<div style=”font-size: 2.06em;”>o</div>
</div>
<div style=”position: absolute; padding-left: 4.57em; padding-top: 5.44em;”>
<div style=”font-size: 0.95em;”>)</div>
</div>

<div style=”position: absolute; padding-left: 4.49em; padding-top: 5.66em;”>
<div style=”font-size: 0.88em;”>b</div>
</div>
<div style=”position: absolute; padding-left: 4.01em; padding-top: 5.14em;”>
<div style=”font-size: 1.48em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 3.37em; padding-top: 4.84em;”>
<div style=”font-size: 1.83em; font-weight: bold;”>O</div>
</div>
<div style=”position: absolute; padding-left: 3.21em; padding-top: 4.38em;”>
<div style=”font-size: 2.27em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 3.07em; padding-top: 4.54em;”>

<div style=”font-size: 2.09em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 2.95em; padding-top: 4.53em;”>
<div style=”font-size: 2.08em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 2.88em; padding-top: 4.78em;”>
<div style=”font-size: 1.78em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 3.71em; padding-top: 4.79em;”>
<div style=”font-size: 1.85em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 2.87em; padding-top: 4.59em;”>
<div style=”font-size: 1.93em; font-weight: bold;”>o</div>

</div>
<div style=”position: absolute; padding-left: 3.09em; padding-top: 4.55em;”>
<div style=”font-size: 1.93em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 2.73em; padding-top: 5.03em;”>
<div style=”font-size: 1.44em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 2.59em; padding-top: 5.77em;”>
<div style=”font-size: 0.82em; font-weight: bold;”>o</div>
</div>
<div style=”position: absolute; padding-left: 3.04em; padding-top: 6.4em;”>
<div style=”font-size: 0.16em; font-weight: bold; font-style: italic; color: #000;”>/</div>
</div>

<div style=”position: absolute; padding-left: 3.03em; padding-top: 6.4em;”>
<div style=”font-size: 0.16em; font-weight: bold; font-style: italic; color: #000;”>/</div>
</div>
<div style=”position: absolute; padding-left: 3.02em; padding-top: 6.4em;”>
<div style=”font-size: 0.16em; font-weight: bold; font-style: italic; color: #000;”>/</div>
</div>
</div>
<div style=”position: absolute; padding-left: 3.24em; padding-top: 2.49em;”>
<div style=”font-size: 2.76em; font-weight: bold; color: #000;”>•</div>
</div>
<div style=”position: absolute; padding-left: 3.34em; padding-top: 2.68em;”>
<div style=”font-size: 2.49em; font-weight: bold; color: #fff;”>•</div>
</div>
<div style=”position: absolute; padding-left: 4.2em; padding-top: 4.26em;”>
<div style=”font-size: 0.28em; font-weight: bold; color: #000;”>•</div>

</div>
<div style=”position: absolute; padding-left: 3.9em; padding-top: 4.05em;”>
<div style=”font-size: 1.47em; font-weight: bold; color: #000;”>•</div>
</div>
<div style=”position: absolute; padding-left: 3.99em; padding-top: 4.23em;”>
<div style=”font-size: 1.2em; font-weight: bold; color: #FED90E;”>•</div>
</div>
<div style=”position: absolute; padding-left: 3.66em; padding-top: 4.7em;”>
<div style=”font-size: 10px”>
<div style=”width: 4.6em; height: 3.88em; background-color: #FED90E;”></div>
</div>
</div>
<div style=”position: absolute; padding-left: 3.68em; padding-top: 3.36em;”>
<div style=”font-size: 1.2em; color: #000;”>_</div>
</div>
<div style=”position: absolute; padding-left: 3.68em; padding-top: 4.03em;”>

<div style=”font-size: 1.2em; color: #000;”>_</div>
</div>
<div style=”position: absolute; padding-left: 3.64em; padding-top: 4.03em;”>
<div style=”font-size: 1.2em; color: #000;”>_</div>
</div>
<div style=”position: absolute; padding-left: 1.96em; padding-top: 2.33em;”>
<div style=”font-size: 3.04em; font-weight: bold; color: #000;”>•</div>
</div>
<div style=”position: absolute; padding-left: 2.06em; padding-top: 2.5em;”>
<div style=”font-size: 2.77em; font-weight: bold; color: #fff;”>•</div>
</div>
<div style=”position: absolute; padding-left: 2.67em; padding-top: 4.23em;”>
<div style=”font-size: 0.28em; font-weight: bold; color: #000;”>•</div>
</div>
<div style=”position: absolute; padding-left: 1.46em; padding-top: 5.18em;”>

<div style=”font-size: 0.66em; color: #000;”>C</div>
</div>
<div style=”position: absolute; padding-left: 1.47em; padding-top: 5.4em;”>
<div style=”font-size: 0.66em; color: #000;”>C</div>
</div>
<div style=”position: absolute; padding-left: 1.62em; padding-top: 5.53em;”>
<div style=”font-size: 10px”>
<div style=”width: 2.2em; height: 2.2em; background-color: #FED90E;”></div>
</div>
</div>
<div style=”position: absolute; padding-left: 1.45em; padding-top: 5.19em;”>
<div style=”font-size: 0.8em; font-weight: bold; color: #FED90E;”>O</div>
</div>
<div style=”position: absolute; padding-left: 1.58em; padding-top: 5.47em;”>

<div style=”font-size: 0.25em; font-weight: bold; font-style: italic; color: #000;”>(</div>
</div>
<div style=”position: absolute; padding-left: 1.62em; padding-top: 5.46em;”>
<div style=”font-size: 0.25em; font-weight: bold; font-style: italic; color: #000;”>-</div>
</div>
</div>
</div>
</div>
</div>

Comments ( 21 )

  1. Reply胡戈戈
    沙他妈的发
    • ReplyBigCat
      这个河马有N个div构成...当然卡了... - -
  2. Replyicarian
    卡着进来时,看到不同形状不同模样的黑色框框,圈圈一层一层加上去。想不要到居然都是N多div构成的巴特同学啊。啊~
    • ReplyBigCat
      - - ...巴特的老爹...确切的说 ...sigh...快点沉下去沉下去... 做的那位同学才叫有耐心...
  3. Replyyacca
    真tm牛逼...css写的..
  4. Reply小剑
    太变态了 这个人真牛真有耐心。。 会不会由专门的软件生成的呢?
    • ReplyBigCat
      图案转字符倒是有软件,不过div就不知道了....- -
  5. ReplyJason Ng
    我宁愿加载10张图片也不加载这段CSS...
    • ReplyBigCat
      - - 就像用JS做flash效果一样,哈哈 只是好玩啦,除去实用性来说
  6. Reply火星蜥蜴
    ~~~很强大~homer~这丫变态的~
    • ReplyEmma
      I was struck by the hotesny of your posting
  7. Reply不常识
    把它反选一下,看出一丁点端倪。不过确实厉害啊!
    • ReplyBigCat
      哈哈,查看网页隐藏元素反选是个小窍门哦~
  8. Replycosbeta
    偶大学的时候看到强人用js写了一个简单的starcraft,那才叫NB
    • ReplyBigCat
      http://www.oyj.cn/bbs/mods/my/starcraft/ - - 膜拜...
  9. ReplyDickey
    我浏览器通常是屏蔽所有图片的,看到这河马正好奇呢,原来是CSS
    • ReplyBigCat
      - - 可惜在rss reader里乱七八糟了....
  10. Reply秋天霓虹灯
    用纯HTML+CSS画出巴特的爸爸河马 太多闲暇时间了吧@_@ 彻底卑服
    • ReplyBigCat
      哈哈,你blog主题的作者就做在我后面不远处...
  11. Replyfisio
    reader里显示不出来,嘿嘿
    • ReplyBigCat
      哈哈~我也发现了,而且直接源代码显示太长了...限制了高度...

Leave a reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>