分享
 
 
 

CSS代码表现一座漂亮的房子的特效

王朝html/css/js·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<title>CSS House (3D Border Demo 2) by Chris Hester</title>

<style type="text/css">

/* Thanks to Big John for repeated testing in IE5/Win! */

/* http://positioniseverything.net */

* {

font-family:Verdana, Arial, Helvetica, sans-serif;

font-size:12px;

line-height:14px;

}

body {

margin:0;

padding:0;

background-color:#fff;

color:#000; // to please poster here: http://digg.com/design/CSS_House

}

/* define all divs as bricks to save code. Overwrite values later for any non-bricks */

/* firstly deal with IE5's broken box model. The rule below works for IE only */

/* See http://www.info.com.ph/~etan/w3pantheon/style/modifiedsbmh.html */

* html div {

width:60px; /* Total box width (borders + padding + width) for IE5/Win */

w\idth:52px; /* Other versions of IE get this width */

height:26px; /* Total box height */

he\ight:18px;

}

/* Now deal with all other CSS browsers */

div {

position:absolute;

width:52px;

height:18px;

margin:0;

padding:0;

border-top:4px solid #f00;

border-left:4px solid #e00;

border-bottom:4px solid #b00;

border-right:4px solid #c00;

background-color:#d00;

z-index:1;

}

* html #roof {

width:758px;

w\idth:500px;

height:150px;

he\ight:50px;

}

#roof {

top:4px;

left:10px;

width:500px;

height:50px;

border-top:0px solid #fc0;

border-left:129px solid #fff;

border-bottom:100px solid #575;

border-right:129px solid #fff;

background-color:#fff;

}

* html #roof2 {

width:632px;

w\idth:374px;

height:90px;

he\ight:40px;

}

#roof2 {

top:14px;

left:73px;

width:374px;

height:40px;

border-top:0px solid #fc0;

border-left:129px solid #fff;

border-bottom:50px solid #686;

border-right:129px solid #fff;

background-color:#fff;

z-index:2;

}

#brick1, #brick2, #brick3, #brick4, #brick5, #brick9, #brick10, #brick11, #brick12 {top:180px;}

#brick1 {left:30px;}

#brick2 {left:90px;}

#brick3 {left:150px;}

#brick4 {left:210px;}

* html #brick5 {

width:240px;

w\idth:232px;

}

#brick5 {left:270px; width:232px;}

#brick9 {left:510px;}

#brick10 {left:570px;}

#brick11 {left:630px;}

#brick12 {left:690px;}

#brick13, #brick14, #brick15, #brick16, #brick17, #brick18 {top:206px;}

/* Deal with all half bricks at once for IE5/Win */

* html #brick13, * html #brick15, * html #brick16, * html #brick18, * html #brick23, * html #brick24, * html #brick25,

* html #brick26, * html #brick27, * html #brick28, * html #brick29, * html #brick30, * html #brick31, * html #brick32,

* html #brick33, * html #brick34, * html #brick35, * html #brick36, * html #brick37, * html #brick38, * html #brick39,

* html #brick41, * html #brick42, * html #brick44, * html #brick61,

* html #brick79, * html #brick92, * html #brick65, * html #brick96, * html #brick66, * html #brick97, * html #brick70,

* html #brick91, * html #brick101, * html #chbrick2, * html #chbrick3, * html #chbrick6, * html #chbrick7,

* html #chbrick2, * html #chbrick3, * html #chbrick6, * html #chbrick7 {

width:30px;

w\idth:22px;

}

#brick13 { /* half-brick */

left:30px;

width:22px;

}

#brick14 {

left:60px;

width:172px;

}

#brick15 { /* half-brick */

left:240px;

width:22px;

}

#brick16 { /* half-brick */

left:510px;

width:22px;

}

#brick17 {

left:540px;

width:172px;

}

#brick18 { /* half-brick */

left:720px;

width:22px;

}

* html #brick14, * html #brick17 {

width:180px;

w\idth:172px;

}

#brick19, #brick20, #brick21, #brick34, #brick22 {top:232px;}

#brick19 {left:30px;}

#brick20 {left:210px;}

#brick21 {left:510px;}

#brick22 {left:690px;}

#brick23, #brick24, #brick25, #brick26, #brick27, #brick28, #brick29, #brick30 {

top:258px;

width:22px;

}

#brick31, #brick32, #brick33, #brick34, #brick35, #brick36, #brick37, #brick38 {

top:310px;

width:22px;

}

#brick39, #brick41, #brick42, #brick44 {

top:362px;

width:22px;

}

#brick40, #brick43 {top:362px;}

#brick23, #brick31, #brick39 {left:30px;}

#brick24, #brick32 {left:60px;}

#brick25, #brick33 {left:210px;}

#brick26, #brick34, #brick41 {left:240px;}

#brick27, #brick35, #brick42 {left:510px;}

#brick28, #brick36 {left:540px;}

#brick29, #brick37 {left:690px;}

#brick30, #brick38, #brick44 {left:720px;}

#brick40 {

left:60px;

width:172px;

}

#brick43 {

left:540px;

width:172px;

}

* html #brick40, * html #brick43 {

width:180px;

w\idth:172px;

}

#brick45, #brick46, #brick47, #brick48 {top:284px;}

#brick49, #brick50, #brick51, #brick52 {top:336px;}

#brick45, #brick49 {left:30px;}

#brick46, #brick50 {left:210px;}

#brick47, #brick51 {left:510px;}

#brick48, #brick52 {left:690px;}

#brick53, #brick54, #brick55, #brick59, #brick56, #brick57, #brick58, #brick60, #brick61 {top:388px;}

#brick53 {left:30px;}

#brick54 {left:90px;}

#brick55 {left:150px;}

#brick56 {left:210px;}

#brick57 {left:510px;}

#brick58 {left:570px;}

#brick59 {left:630px;}

#brick60 {left:690px;}

#brick61, #brick62, #brick63, #brick64, #brick65, #brick66, #brick67, #brick68, #brick69, #brick70, #brick71, #brick79, #brick80, #brick81, #brick82, #brick83, #brick84, #brick85, #brick86, #brick87, #brick88, #brick89, #brick90, #brick91, #brick92, #brick93, #brick94, #brick95, #brick96, #brick97, #brick98, #brick99, #brick100, #brick101 {top:466px;}

#brick61, #brick62, #brick63, #brick64, #brick65, #brick66, #brick67, #brick68, #brick69, #brick70 {top:414px;}

#brick79, #brick80, #brick81, #brick82, #brick83, #brick84, #brick85, #brick86, #brick87, #brick88, #brick89, #brick90, #brick91 {top:154px;}

#brick92, #brick93, #brick94, #brick95, #brick96, #brick97, #brick98, #brick99, #brick100, #brick101 {top:466px;}

#brick61, #brick79, #brick92 { /* half-brick */

left:30px;

width:22px;

}

#brick62, #brick80, #brick93 {left:60px;}

#brick63, #brick81, #brick94 {left:120px;}

#brick64, #brick82, #brick95 {left:180px;}

#brick65, #brick96 { /* half-brick */

left:240px;

width:22px;

}

#brick83 {left:240px;}

#brick84 {left:300px;}

#brick85 {left:360px;}

#brick86 {left:420px;}

#brick87 {left:480px;}

#brick66, #brick97 { /* half-brick */

left:510px;

width:22px;

}

#brick67, #brick88, #brick98 {left:540px;}

#brick68, #brick89, #brick99 {left:600px;}

#brick69, #brick90, #brick100 {left:660px;}

#brick70, #brick91, #brick101 { /* half-brick */

left:720px;

width:22px;

}

#brick71, #brick72, #brick73, #brick74, #brick75, #brick76, #brick77, #brick78 {top:440px;}

#brick71 {left:30px;}

#brick72 {left:90px;}

#brick73 {left:150px;}

#brick74 {left:210px;}

#brick75 {left:510px;}

#brick76 {left:570px;}

#brick77 {left:630px;}

#brick78 {left:690px;}

/* darker long bricks + chimneys */

#brick5, #brick14, #brick17, #brick40, #brick43, #chbrick1, #chbrick2, #chbrick3, #chbrick4, #chbrick5, #chbrick6, #chbrick7, #chbrick8 {

border-top:4px solid #d00;

border-left:4px solid #c00;

border-bottom:4px solid #900;

border-right:4px solid #a00;

background-color:#b00;

z-index:2;

}

#chbrick1, #chbrick2, #chbrick4 {left:179px;}

#chbrick5, #chbrick6, #chbrick7, #chbrick8 {left:539px;}

#chbrick3 {left:209px;}

#chbrick7 {left:569px;}

#chbrick1, #chbrick5 {top:8px;}

#chbrick2, #chbrick3, #chbrick6, #chbrick7 {

top:34px;

width:22px;

}

#chbrick4, #chbrick8 {top:60px;}

/* window panes */

#pane1L, #pane2L, #pane3L, #pane1R, #pane2R, #pane3R {

padding:10px;

border-top:4px solid #a98;

border-left:10px solid #cba;

border-bottom:3px solid #f3e3d3;

border-right:10px solid #e9d8c7;

background-color:#666;

z-index:3;

}

* html #pane1L, * html #pane1R {

width:108px;

w\idth:68px;

height:29px;

he\ight:18px;

}

#pane1L {

top:238px;

left:96px;

width:68px;

height:18px;

border-top:9px solid #a98;

}

* html #pane2L, * html #pane2R {

width:53px;

w\idth:19px;

height:66px;

he\ight:36px;

}

#pane2L {

top:291px;

left:96px;

width:19px;

height:36px;

border-right:4px solid #e9d8c7;

border-bottom:6px solid #f3e3d3;

}

* html #pane3L, * html #pane3R {

width:52px;

w\idth:18px;

height:66px;

he\ight:36px;

}

#pane3L {

top:291px;

left:152px;

width:18px;

height:36px;

border-left:4px solid #cba;

border-bottom:6px solid #f3e3d3;

}

#pane1R {

top:238px;

left:576px;

width:68px;

height:18px;

border-top:9px solid #a98;

}

#pane2R {

top:291px;

left:576px;

width:19px;

height:36px;

border-right:4px solid #e9d8c7;

border-bottom:6px solid #f3e3d3;

}

#pane3R {

top:291px;

left:632px;

width:18px;

height:36px;

border-left:4px solid #cba;

border-bottom:6px solid #f3e3d3;

}

#windowL, #windowR {

top:232px;

width:120px;

height:130px;

border:none;

background-color:#fed;

z-index:2;

}

#windowR {left:90px;}

#windowL {left:570px;}

* html p.door {

width:142px;

w\idth:102px;

height:222px;

he\ight:187px;

}

p.door {

width:102px;

height:187px;

margin:0;

padding:10px;

border-top:9px solid #800;

border-right:10px solid #b00;

border-bottom:6px solid #ccc;

border-left:10px solid #b00;

background-color:#fed;

z-index:2;

}

* html #inner {

width:182px;

w\idth:142px;

height:250px;

[1] [2] 下一页

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有