html5+css3pc端固定佈局,熱門旅遊取,標題介紹區,旅遊項目區css
樣式:html
html代碼:html5
<!--主體--> <section class="zhu-ti"> <div class="zhu-ti2"> <h2>熱門旅遊</h2> <p>國內旅遊、國外旅遊、自助旅遊、自駕旅遊、油輪簽證、主題旅遊等各類最新熱門旅遊推薦</p> </div> <div class="tu"> <img src="img/tour1.jpg"> <h3>曼谷-芭提雅6日遊曼谷-芭提雅6日遊曼谷-芭提雅6日遊曼谷-芭提雅6日遊曼谷-芭提雅6日遊曼谷-芭提雅6日遊曼谷-芭提雅6日遊</h3> <div class="jia-ge"> <span>¥<strong>2864</strong>起</span> <em>滿意度70%</em> </div> <div class="shu-xing"> <span>自助旅遊</span> </div> </div> <div class="tu"> <img src="img/tour2.jpg"> <h3>馬爾代夫雙魚島Olhuveli4晚6日自助遊上海出發,機+酒 包含:遲早餐+快艇 </h3> <div class="jia-ge"> <span>¥<strong>2864</strong>起</span> <em>滿意度20%</em> </div> <div class="shu-xing"> <span>自助旅遊</span> </div> </div> <div class="tu"> <img src="img/tour3.jpg"> <h3>海南雙飛5日遊含鹽城接送,全程掛牌四星酒店,一價全含,零自費「自費項目」免費送</h3> <div class="jia-ge"> <span>¥<strong>2864</strong>起</span> <em>滿意度69%</em> </div> <div class="shu-xing"> <span>自助旅遊</span> </div> </div> <div class="tu"> <img src="img/tour4.jpg"> <h3>富山-大阪-東京8日遊暑期親子,2天自由,無導遊安排自費項目,全程不強迫購物 </h3> <div class="jia-ge"> <span>¥<strong>2864</strong>起</span> <em>滿意度36%</em> </div> <div class="shu-xing"> <span>自助旅遊</span> </div> </div> <div class="tu"> <img src="img/tour5.jpg"> <h3>法瑞意德12日遊4至5星,金色列車,少女峯,部分THE MALL </h3> <div class="jia-ge"> <span>¥<strong>2864</strong>起</span> <em>滿意度12%</em> </div> <div class="shu-xing"> <span>自助旅遊</span> </div> </div> <div class="tu"> <img src="img/tour6.jpg"> <h3>巴厘島6日半自助遊藍夢出海,獨棟別墅,悅榕莊下午茶,純玩 </h3> <div class="jia-ge"> <span>¥<strong>2864</strong>起</span> <em>滿意度10%</em> </div> <div class="shu-xing"> <span>自助旅遊</span> </div> </div> <div class="tu"> <img src="img/tour7.jpg"> <h3>塞舌爾迪拜9日自助遊一遊兩國,4晚塞舌爾,2晚迪拜,香港EK往返 </h3> <div class="jia-ge"> <span>¥<strong>2864</strong>起</span> <em>滿意度5%</em> </div> <div class="shu-xing"> <span>自助旅遊</span> </div> </div> <div class="tu"> <img src="img/tour8.jpg"> <h3>花樣姐姐土耳其9日或10日遊最高立減3000!中餐六菜一湯+土耳其當地美食知足您挑剔味蕾 </h3> <div class="jia-ge"> <span>¥<strong>2864</strong>起</span> <em>滿意度46%</em> </div> <div class="shu-xing"> <span>自助旅遊</span> </div> </div> <div class="tu"> <img src="img/tour9.jpg"> <h3>大阪-京都-箱根雙飛6日遊鹽城直飛,不走回頭路,境外無自費,超值之旅 </h3> <div class="jia-ge"> <span>¥<strong>2864</strong>起</span> <em>滿意度19%</em> </div> <div class="shu-xing"> <span>自助旅遊</span> </div> </div> </section>
css代碼:css3
/*主體區*/ .zhu-ti{ width: 1263px; height: 1150px; margin: 0 auto; } .zhu-ti .zhu-ti2{ text-align: center; padding: 10px 0 10px 0; } .zhu-ti .zhu-ti2 h2{ margin: 10px 0 10px 0; font-size: 45px; color: #666666; } .zhu-ti .zhu-ti2 p{ margin: 10px 0 10px 0; color: #666666; } .zhu-ti .tu{ display: inline-block; vertical-align: bottom; padding: 5px 5px 5px 5px; border: 1px solid #DDDDDD; border-radius: 6px; position: relative; margin: 14px 0 10px 14px; } .zhu-ti .tu img{ vertical-align: middle; } .zhu-ti .tu h3{ width: 380px; height: 32px; font-size: 14px; font-weight: normal; line-height: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .zhu-ti .tu .jia-ge{ width: 380px; height: 40px; line-height: 40px; } .zhu-ti .tu .jia-ge span{ font-size: 14px; color: #FF6600; } .zhu-ti .tu .jia-ge span strong{ font-size: 20px; margin: 0 5px 0 5px; } .zhu-ti .tu .jia-ge em{ font-style: normal; float: right; font-size: 14px; color: #999999; } .zhu-ti .tu .shu-xing{ background-color: #59B200; width: 92px; height: 26px; line-height: 26px; text-align: center; border-radius: 0 0 6px 0; position: absolute; top: 5px; left: 5px; color: #fff6fc; }