静态网页简单设计
應(yīng)同學(xué)要求,幫忙簡單設(shè)計一個靜態(tài)網(wǎng)頁。我就愉快的答應(yīng)了,其實我心里挺沒底的,但是基于我前段時間有過微信小程序的基礎(chǔ)學(xué)習(xí),在部分css代碼上還是差不多的。
幫同學(xué)做的這個網(wǎng)頁是《傳聞中的陳芊芊》這個電視劇的部分相關(guān)內(nèi)容。
下面是最終的網(wǎng)頁界面。
網(wǎng)頁界面最終效果:
源代碼:
下面只是展示了部分的源代碼,相關(guān)素材及全部代碼可以點擊此處鏈接下載
🤭🤭🤭
index.html
actors.html關(guān)鍵代碼:
<!--角色板塊開始--><div class="content03"><!--*******欄目6********--><div class="lanmu6"><div class="lanmu6_01"></div><div class="lanmu6_middle"></div><div class="lanmu6_02" ><h3>陳芊芊</h3>傳聞中囂張跋扈、在花垣城中肆意妄為的三郡主,讓別人叫自己三公主,在現(xiàn)實生活當(dāng)中是一名編劇,無意中穿越到自己女尊的劇本當(dāng)中,為了活下去用著三郡主的角色努力生活下去,一邊與韓爍斗智斗法,一邊嘗試撮合原來的女主陳楚楚和韓爍,不料韓爍卻反倒對她情根深種。</div></div><!--*******欄目7********--><div class="lanmu7"><div class="lanmu701"><h3>陳楚楚</h3>花垣城二郡主,本是下任女帝的最佳人選,正直善良、樂觀漂亮,卻因陳芊芊搶走戲份后,漸漸黑化,后來成為女主陳芊芊的最大勁敵,殊不知,她也并非花垣女帝的親生女兒。</div><div class="lanmu702"></div><div class="lanmu703"></div></div><!--*******欄目8********--><div class="lanmu8"><div class="lanmu801"></div><div class="lanmu802"></div><div class="lanmu803"><h3>陳沅沅</h3>花垣城大郡主,身負(fù)殘疾,終日坐在輪椅上。她悲觀但堅強(qiáng),一邊說著悲春傷秋的話,一邊卻各處搜羅各種大補(bǔ)食材。久病成良醫(yī),她醫(yī)術(shù)非常高明,什么病都能治,除了自己的腿。表面上冷漠孤僻,實際內(nèi)心渴望別人的關(guān)懷,更想像正常人一樣談一段刻骨銘心的戀愛。</div></div><!--*******欄目9********--><div class="lanmu9"><div class="lanmu901"></div><div class="lanmu902"><h3>韓爍</h3>玄虎城的少主,北夏王子,是個病弱腹黑、傲嬌帥氣的美男子,文韜武略且容顏絕美,見過的人無不贊嘆,可惜天生心疾,注定活不過二十,他同時是陳芊芊的夫婿,他為了傳說中那個龍骨來到了花垣城,表面上柔弱多病,實際上是隱藏實力,在尋找龍骨的過程中愛上了陳芊芊,放棄了仇恨。</div><div class="lanmu903"></div></div><!--*******欄目10********--><div class="lanmu10"><div class="lanmu1001"></div><div class="lanmu1002"></div><div class="lanmu1003"><h3>裴恒</h3>花垣城的第一美男子,家世、才學(xué)都近乎完美,是花垣少女心中的優(yōu)質(zhì)偶像,與陳芊芊有婚約,起初對其排斥,但在女主小千進(jìn)入劇情后,卻漸漸被其吸引。</div></div><!--*******欄目11********--><div class="lanmu11"><div class="lanmu1101"><h3>蘇沐</h3>花垣城教坊司“頭牌”,有“萬人空巷看蘇郎'的評價。他最擅長討好女人,是婦女之友,非常會察言觀色。做事穩(wěn)妥,風(fēng)流浪蕩的外表下隱藏著一顆細(xì)膩體貼有擔(dān)當(dāng)?shù)男?#xff0c;所以他很快發(fā)現(xiàn)沅沅脆弱又敏感的一面。蘇沐感恩于沅沅對他沒有偏見,所以他很用心地去對大公主,精準(zhǔn)把握住她的脾氣。漸漸兩人互生好感。</div><div class="lanmu1102"></div><div class="lanmu1103"></div></div></div><!--第三板結(jié)束-->fans.html關(guān)鍵代碼:
<div class="jianxi2"></div><div class="footer"><a id="fans">粉絲見面會</a></div><div class="fans_content"><div style="width: 438;height: 2200;float: left;margin-top: 20px;"><divstyle="width: 400; height: 224; float: left;border-radius: 20px;BORDER-RIGHT: #44ffff 18pt ridge; BORDER-TOP: #44ffff 18pt ridge; BORDER-LEFT: #44ffff 18pt ridge; BORDER-BOTTOM: #44ffff 18pt ridge"><img src="img/jmh01.jpg" width="400" height=224/></div><divstyle="width: 400; height: 600; float: left;margin-top: 20px;border-radius: 20px;BORDER-RIGHT: #2ae964c9 18pt ridge; BORDER-TOP: #2ae964c9 18pt ridge; BORDER-LEFT: #2ae964c9 18pt ridge; BORDER-BOTTOM: #2ae964c9 18pt ridge"><img src="img/jmh02.jpg" width="400" height=600/></div><divstyle="width: 400; height: 711; float: left;margin-top: 20px;border-radius: 20px;BORDER-RIGHT: #e6d00f 18pt ridge; BORDER-TOP: #e6d00f 18pt ridge; BORDER-LEFT: #e6d00f 18pt ridge; BORDER-BOTTOM: #e6d00f 18pt ridge"><img src="img/jmh03.jpg" width="400" height=711/></div><divstyle="width: 400; height: 271; float: left;border-radius: 20px;margin-top: 20px;BORDER-RIGHT: #e06227 18pt ridge; BORDER-TOP: #e06227 18pt ridge; BORDER-LEFT: #e06227 18pt ridge; BORDER-BOTTOM: #e06227 18pt ridge"><img src="img/jmh04.jpg" width="400" height=271/></div></div><div style="width: 438;height: 1800;float:right;margin-top: 20px;"><divstyle="width: 400; height: 2010; float:right;BORDER-RIGHT: #ac77e9 18pt ridge; BORDER-TOP: #ac77e9 18pt ridge; BORDER-LEFT: #ac77e9 18pt ridge; BORDER-BOTTOM: #ac77e9 18pt ridge"><div style="width: 400; height: 502.5;background: url(img/cptext_bg01.png);"><div style="font-size: 28;"><br/>[cp]今天看了《傳聞中的陳芊芊》粉絲見面會直播回放,感覺他們之間的關(guān)系比較真誠,不僅是工作同事,更像是朋友,或許是因為趙露思比較會搞氣氛,感覺他們之間很和諧,還有因為在看劇的時候,陷入他們演的角色,看直播時會發(fā)現(xiàn)他們也是現(xiàn)實生活中的人啊,會像普通人一樣在臺上緊張,給我的感覺特別真實,總之非常開心看到他們,[可愛][/cp]</div></div><div style="width: 400; height: 1005;background: url(img/cptext_bg02.png);"><div style="font-size: 29;"><br/><br/><br/><br/>[cp]#傳聞中的陳芊芊[超話]##傳聞中的陳芊芊[超話]#真的想說一下傳聞中的陳芊芊這部劇一開始沒被所有人看好連見面會跟售后都是劇粉每天催命似的催官博催出來的慶祝蛋糕還是貼片 還只貼一半兩位主演也是小演員 沒有很大的粉絲基礎(chǔ)我們從來沒有 污蔑過別人甚至被別人超過也只是“果然jynn就是jynn 我們也要努力” 很長時間也以沖一保二作為目標(biāo)<br/>理解你們的心情 但這不是否認(rèn)我們努力的理由 <br/>偉大的玄虎醋王八曾經(jīng)說過:“你讓的?明明是我們自己爭取的!”[/cp]</div></div><div style="width: 400; height: 502.5;background: url(img/cptext_bg03.png);"><div style="font-size: 29;"><br/>[cp]#視頻創(chuàng)作者##傳聞中的陳芊芊#傳聞中的陳芊芊「粉絲見面會直播」托盤抱還是公主抱?異口同聲:公主抱!拍托盤抱的時候什么感受?露思:我吸了口氣,憋住……顫抖著祈禱,抱起我抱起我!丁禹兮一定要抱起我!球球!女演員真的是不容易「允悲」趙露思陳芊芊,丁禹兮韓爍 http://t.cn/A6LVwY1Y ?[/cp]</div></div></div></div></div></div>wonderful_moments.html關(guān)鍵代碼:
<div class="jianxi2"></div><!--內(nèi)容開始--><div class="content22"><div id="video"><video width="960" height="540" controls autoplay><source src="media/video.mp4" type="video/mp4"></video></div></div>talk_over.html關(guān)鍵代碼:
<form id="form" action="" method="post" class="elegant-aero"><h1>留言版<span>留言討論,請?zhí)钊胂嚓P(guān)內(nèi)容并提交。</span></h1><label><span>姓 名 :</span><input id="name" type="text" name="name" placeholder="Your Full Name" /></label><label><span>電子郵件 :</span><input id="email" type="email" name="email" placeholder="Valid Email Address" /></label><label><span>手機(jī)號 :</span><input id="number" type="text" name="number" placeholder="Your Phone Number" /></label><label><span>留言內(nèi)容 :</span><textarea id="message" name="message" placeholder="Your Message to Us"></textarea></label><label><span> </span><input type="button" class="button" value="提交" /></label></form>css代碼:
body{margin:0; padding:0;background-image: url(img/bg.png);background-repeat: repeat;background-attachment: fixed;/*背景圖片固定,不隨鼠標(biāo)滾動而滾動*/ } /*logo*/ .logo{ background:url(img/logo_bg.png); margin:0 auto; width:960px; height:300px;padding-top: 15px;padding-bottom: 10px;background-repeat:repeat;border-radius:20px;/*圓角過渡*/ } /**##########滾動圖片設(shè)置#################**/ .box {margin-top: 80px;width: 100%;height: 340px;position: relative; }.list {width: 1200px;height: 300px;overflow: hidden;position: absolute;left: 50%;margin-left: -365px; }.btn {position: absolute;top: 50%;margin-top: -50px;width: 60px;height: 100px;line-height: 100px;font-size: 30px;color: white;text-decoration: none;text-align: center;background: rgba(0, 255, 0, .5);cursor: pointer; }.next {right: 0; }li {position: absolute;top: 0;left: 0;list-style: none;opacity: 0;transition: all 0.3s ease-out; }.img1 {width: 280px;height: 300px;border: none;float: left; }.p1 {transform: translate3d(-224px, 0, 0) scale(0.81); }.p2 {transform: translate3d(0px, 0, 0) scale(0.81);transform-origin: 0 50%;opacity: 0.8;z-index: 2; }.p3 {transform: translate3d(224px, 0, 0) scale(1);z-index: 3;opacity: 1; }.p4 {transform: translate3d(449px, 0, 0) scale(0.81);transform-origin: 100% 50%;opacity: 0.8;z-index: 2; }.p5 {transform: translate3d(672px, 0, 0) scale(0.81); }.p6 {transform: translate3d(896px, 0, 0) scale(0.81); }.p7 {transform: translate3d(1120px, 0, 0) scale(0.81); }.buttons {position: absolute;width: 1200px;height: 30px;bottom: 0;left: 50%;margin-left: -600px;text-align: center;padding-top: 10px; }.buttons a {display: inline-block;width: 35px;height: 5px;padding-top: 4px;margin: 50px;cursor: pointer; } /**####################################################################**//*導(dǎo)航欄*/ .Navigation{background: #e9a6d5;width: 960px;height: 40px;margin: 0 auto;text-align: center;font-family: "字魂27號-布丁體";font-size: 24px;border-radius:20px;/*圓角過渡*/ } /*內(nèi)容*/ .content{ background:#ffffff; width:960px; height:645px; margin:0 auto} .content22{ background:#ffffff; width:960px; height:543px; margin:0 auto} /*第一版塊*/ .contentone{ background:#ffffff; width:960px; height:300px; margin:0 auto} /*欄目一*/ .lanmuyi{ background:#ffffff; width:250px; height:300px; float:left;border:2px solid rgb(144, 201, 150); margin:0 20 0 0} .lanmuheadyi{ background:rgb(144, 201, 150); width:250px;height:30px} .lanmunameyi{ width:135px;height:30px; float:left} .lanmumoreyi{ width:135px;height:30px; float:right;} .nameyi{text-align: left;color: #000000;font-size: 18px;margin: 0 0 0 10;font-family: "字魂27號-布丁體"; } .moreyi{text-align: right;color: #151414;font-size: 16px;margin: 0 0 0 60;font-family: "字魂27號-布丁體"; } /*欄目二*/ .lanmuer{ background:rgb(241, 173, 127); width:408px; height:300px; float:left;border:2px solid #f6c092; margin:0 20 0 0} .lanmuheader{ background:#f6c092; width:408px;height:30px} .lanmunameer{ width:180px;height:30px; float:left} .lanmumoreer{ width:180px;height:30px; float:right;} .nameer{text-align: left;color: #000000;font-size: 18px;margin: 0 0 0 10;font-family: "字魂27號-布丁體"; } .moreer{text-align: right;color: #000000;font-size: 16px;margin: 0 0 0 170;font-family: "字魂27號-布丁體"; } /*欄目三*/ .lanmusan{ background:#ffffff; width:250px; height:300px;float:left;border:2px solid #f7aea8; margin:0 0 0 0} .lanmuheadsan{ background:#f7aea8; width:250px;height:30px} .lanmunamsan{ width:135px;height:30px; float:left} .lanmumore{ width:135px;height:30px; float:right;} .namesan{text-align: left;color: #000000;font-size: 18px;margin: 0 0 0 10;font-family: "字魂27號-布丁體"; } .moresan{text-align: right;color: #000000;font-size: 16px;margin: 0 0 0 60;font-family: "字魂27號-布丁體"; } /*第二版塊*/ .contenttwo{ background:#ffffff; width:960px; height:300px; margin:0 auto} /*欄目四*/ .lanmusi{ background:#fff; width:466px; height:300px; float:left;border:2px solid #FF9900; margin:0 20 0 0} .lanmuheadsi{ background:#FF9900; width:466px;height:30px} .lanmunamesi{ width:240px;height:30px; float:left} .lanmumoresi{ width:240px;height:30px; float:right;} .namesi{text-align: left;color: #000000;font-size: 18px;margin: 0 0 0 10;font-family: "字魂27號-布丁體"; } .moresi{text-align: right;color: #000000;font-size: 16px;margin: 0 0 0 170;font-family: "字魂27號-布丁體"; } /*欄目五*/ .lanmuwu{ background:#fff; width:466px; height:300px; float:left;border:2px solid #FFCC00; margin:0 0 0 0} .lanmuheadwu{ background:#FFCC00; width:466px;height:30px} .lanmunamewu{ width:240px;height:30px; float:left} .lanmumorewu{ width:240px;height:30px; float:right;} .namewu{text-align: left;color: #000000;font-size: 18px;margin: 0 0 0 10;font-family: "字魂27號-布丁體"; } .morewu{text-align: right;color: #000000;font-size: 16px;margin: 0 0 0 170;font-family: "字魂27號-布丁體"; }/*底部*/ .footer{ background:#8df19b;width:960px; height:40px; margin:auto;text-align: center;font-family: "字魂27號-布丁體";font-size: 24px;border-radius:40px;/*圓角過渡*/ } .footerX{height: 30px;line-height: 30px;margin-left: 152px;position: inherit;bottom: 0;width: 960px;text-align: center;background: #333;color: #fff;font-family: Arial;font-size: 12px;letter-spacing: 1px; } /*間隙*/ .jianxi1{width: 960px;height: 10px;margin: 0 auto;} .jianxi2{width: 960px;height: 10px;margin: 0 auto;} .jianxi3{width: 960px;height: 10px;margin-bottom: 10; } .content03{width:960px; height:2600px; margin:0 auto} /*********************************************/ .lanmu6{width: 960px;height: 400px;margin: 0 auto;border:2px solid rgb(243, 68, 14);border-radius:20px;/*圓角過渡*/ } .lanmu6_01{width: 350px;height: 380px;margin-top: 10px;margin-left: 10px;background:url(img/Chenqianqian.png);border:2px solid rgb(243, 68, 14);float:left;border-radius:20px;/*圓角過渡*/ } .lanmu6_middle{width: 205px;height: 380px;margin: 10px;background:url(img/m01.png);background-repeat: repeat;border:2px solid rgb(243, 68, 14);float:left;border-radius:20px;/*圓角過渡*/ } .lanmu6_02{width: 350px;height: 380px;margin-top: 10px;margin-right: 10px;border:2px solid rgb(243, 68, 14);float:right;border-radius:20px;/*圓角過渡*/font-size: 25;font-family: KaiTi;} /********************************************/ .lanmu7{width: 960px;height: 400px;margin: 0 auto;border:2px solid rgb(243, 68, 14);border-radius:20px;/*圓角過渡*/ } .lanmu701{width: 350px;height: 380px;margin-top: 10px;margin-left: 10px;border:2px solid rgb(243, 68, 14);float:left;border-radius:20px;/*圓角過渡*/font-size: 30;font-family: KaiTi; } .lanmu702{width: 350px;height: 380px;margin-top: 10px;margin-left: 10px;background:url(img/Chengchuchu.png);border:2px solid rgb(243, 68, 14);float:left;border-radius:20px;/*圓角過渡*/ } .lanmu703{width: 205px;height: 380px;margin: 10px;background:url(img/m02.png);background-repeat: repeat;border:2px solid rgb(243, 68, 14);float:right;border-radius:20px;/*圓角過渡*/ } /*****************************/ .lanmu8{width: 960px;height: 400px;margin: 0 auto;border:2px solid rgb(243, 68, 14);border-radius:20px;/*圓角過渡*/ } .lanmu801{width: 205px;height: 380px;margin: 10px;background:url(img/m03.png);background-repeat: repeat;border:2px solid rgb(243, 68, 14);float: left;border-radius:20px;/*圓角過渡*/ } .lanmu802{width: 350px;height: 380px;margin-top: 10px;margin-left: 10px;background:url(img/Chenyuanyuan.png);border:2px solid rgb(243, 68, 14);float:left;border-radius:20px;/*圓角過渡*/ } .lanmu803{width: 350px;height: 380px;margin-top: 10px;margin-right: 10px;border:2px solid rgb(243, 68, 14);float:right;border-radius:20px;/*圓角過渡*/font-size: 24;font-family: KaiTi; } /****************************/ .lanmu9{width: 960px;height: 400px;margin: 0 auto;border:2px solid rgb(243, 68, 14);border-radius:20px;/*圓角過渡*/ } .lanmu901{width: 350px;height: 380px;margin-top: 10px;margin-left: 10px;background:url(img/Hanshuo.png);border:2px solid rgb(243, 68, 14);float:left;border-radius:20px;/*圓角過渡*/ } .lanmu902{width: 350px;height: 380px;margin-top: 10px;margin-left: 10px;border:2px solid rgb(243, 68, 14);float:left;border-radius:20px;/*圓角過渡*/font-size: 24;font-family: KaiTi; } .lanmu903{width: 205px;height: 380px;margin: 10px;background:url(img/m04.png);background-repeat: repeat;border:2px solid rgb(243, 68, 14);float:right;border-radius:20px;/*圓角過渡*/ } /******************************/ .lanmu10{width: 960px;height: 400px;margin: 0 auto;border:2px solid rgb(243, 68, 14);border-radius:20px;/*圓角過渡*/ } .lanmu1001{width: 205px;height: 380px;margin: 10px;background:url(img/m05.png);background-repeat: repeat;border:2px solid rgb(243, 68, 14);float: left;border-radius:20px;/*圓角過渡*/ } .lanmu1002{width: 350px;height: 380px;margin-top: 10px;margin-left: 10px;background:url(img/Peiheng.png);border:2px solid rgb(243, 68, 14);float:left;border-radius:20px;/*圓角過渡*/ } .lanmu1003{width: 350px;height: 380px;margin-top: 10px;margin-right: 10px;border:2px solid rgb(243, 68, 14);float:right;border-radius:20px;/*圓角過渡*/font-size: 30;font-family: KaiTi; } /**********************************/ .lanmu11{width: 960px;height: 400px;margin: 0 auto;border:2px solid rgb(243, 68, 14);border-radius:20px;/*圓角過渡*/ } .lanmu1101{width: 350px;height: 380px;margin-top: 10px;margin-left: 10px;border:2px solid rgb(243, 68, 14);float:left;border-radius:20px;/*圓角過渡*/font-size: 22;font-family: KaiTi; } .lanmu1102{width: 205px;height: 380px;margin: 10px;background:url(img/m01.png);background-repeat: repeat;border:2px solid rgb(243, 68, 14);float:left;border-radius:20px;/*圓角過渡*/ } .lanmu1103{width: 350px;height: 380px;margin-top: 10px;margin-right: 10px;background:url(img/Sumu.png);border:2px solid rgb(243, 68, 14);float:right;border-radius:20px;/*圓角過渡*/ } /************************************************/ .elegant-aero {margin-left:auto;margin-right:auto;max-width: 800px;background: #D2E9FF;padding: 20px 20px 20px 20px;font: 12px Arial, Helvetica, sans-serif;color: #666;}.elegant-aero h1 {font: 24px "Trebuchet MS", Arial, Helvetica, sans-serif;padding: 10px 10px 10px 20px;display: block;background: #C0E1FF;border-bottom: 1px solid #B8DDFF;margin: -20px -20px 15px;}.elegant-aero h1>span {display: block;font-size: 11px;}.elegant-aero label>span {float: left;margin-top: 10px;color: #5E5E5E;}.elegant-aero label {display: block;margin: 0px 0px 5px;}.elegant-aero label>span {float: left;width: 20%;text-align: right;padding-right: 15px;margin-top: 10px;font-weight: bold;}.elegant-aero input[type="text"], .elegant-aero input[type="email"], .elegant-aero textarea, .elegant-aero select {color: #888;width: 50%;padding: 0px 0px 0px 5px;border: 1px solid #C5E2FF;background: #FBFBFB;outline: 0;-webkit-box-shadow:inset 0px 1px 6px #ECF3F5;box-shadow: inset 0px 1px 6px #ECF3F5;font: 200 12px/25px Arial, Helvetica, sans-serif;height: 30px;line-height:15px;margin: 2px 6px 16px 0px;}.elegant-aero textarea{height:100px;padding: 5px 0px 0px 5px;width: 50%;}.elegant-aero select {background: #fbfbfb url('down-arrow.png') no-repeat right;background: #fbfbfb url('down-arrow.png') no-repeat right;appearance:none;-webkit-appearance:none;-moz-appearance: none;text-indent: 0.01px;text-overflow: '';width: 70%;}.elegant-aero .button{padding: 10px 30px 10px 30px;background: #66C1E4;border: none;color: #FFF;box-shadow: 1px 1px 1px #4C6E91;-webkit-box-shadow: 1px 1px 1px #4C6E91;-moz-box-shadow: 1px 1px 1px #4C6E91;text-shadow: 1px 1px 1px #5079A3;}.elegant-aero .button:hover{background: #3EB1DD;} /*####################################################*/ .fans_content{width: 960px;height: 2000px;margin: 0 auto; } .img_content{width: 460px;height: 436px;margin: 0 auto;float: left;border:2px solid rgb(243, 68, 14); }/* CSS Document */總結(jié)
- 上一篇: 华为Android岗面经;群面+技术面+
- 下一篇: d3dcompiler_47.dll: