本篇文章要為大家介紹實現簡單網頁的方法。有一定的參考價值,有需要的朋友可以參考一下,希望對大家有幫助。
網頁的大致效果
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Design</title> <script type="text/javascript" src="js/conPanel.js"></script> <link rel="stylesheet" type="text/css" href="css/onLoad.css"> <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"> </head> <body> <!-- 导航条 --> <div id="navbar"> <img src="pic\logo.png" width="171px" height="50px" style="text-align: center;"> <div > <ul> <li>CONTACT</li> <li>PAGES▼</li> <li>PROJECTS</li> <li>PRICE</li> <li>SERVICES</li> <li>ABOUT</li> <li style="color: #ae130c;">HOME</li> </ul> </div> </div> <!-- 幻灯图 --> <div> </div> <!-- Our latest projects --> <!-- bootstrap --> <div> <h2>Our latest projects</h2> <div> <div> <div class="col-lg-3 col-md-3 col-sm-6 col-xs-6"> <div> <div style=" width:244.5px height:160px "> <img src="pic/news1.jpg" width="100%" height=auto > </div> <div> <p >Lorem ipsum</p> <p class="pic_p1 pic_p2" > Lorem ipsum dolor sit amet, conc tetu er adipi scing. Praesent ves tibuum molestie lacuiirhs. Aenean. </p> <a href="#">more</a> </div> </div> </div> <div class="col-lg-3 col-md-3 col-sm-6 col-xs-6"> <div> <div style=" width:244.5px height:160px "> <img src="pic/news2.jpg" width="100%" height=auto > </div> <div> <p>Lorem ipsum</p> <p class="pic_p1 pic_p2"> Lorem ipsum dolor sit amet, conc tetu er adipi scing. Praesent ves tibuum molestie lacuiirhs. Aenean. </p> <a href="#">more</a> </div> </div> </div> <div class="col-lg-3 col-md-3 col-sm-6 col-xs-6"> <div> <div style=" width:244.5px height:160px "> <img src="pic/news3.jpg" width="100%" height=auto > </div> <div> <p >Lorem ipsum</p> <p class="pic_p1 pic_p2" > Lorem ipsum dolor sit amet, conc tetu er adipi scing. Praesent ves tibuum molestie lacuiirhs. Aenean. </p> <a href="#">more</a> </div> </div> </div> <div class="col-lg-3 col-md-3 col-sm-6 col-xs-6"> <div> <div style=" width:244.5px height:160px "> <img src="pic/news4.jpg" width="100%" height=auto > </div> <div> <p >Lorem ipsum</p> <p class="pic_p1 pic_p2"> Lorem ipsum dolor sit amet, conc tetu er adipi scing. Praesent ves tibuum molestie lacuiirhs. Aenean. </p> <a href="#">more</a> </div> </div> </div> </div> </div> </div> <!-- footer --> <!-- bootstrap --> <div> <div> <div> <div style="padding: 0 15px"> <h2>About Us</h2> <p>Perspiciatis unde omnis iste natus error sit voluptatem. Cum sociis natoque penatibus et magnis dis parturient montes ascetur ridiculus musull dui.</p> <p>Lorem ipsumulum aenean noummy endrerit mauris. Cum sociis natoque penatibus et magnis dis parturient montes ascetur ridiculus mus. Null dui. Fusce feugiat malesuada odio.</p> <a href="#" >read more</a> </div> </div> <div> <div style="padding: 0 15px"> <h2>Projects</h2> <div> <ul > <li>Singapore Township</li> <li>Mega luxury Villas</li> <li>RNT Commercial Shopping Mall</li> <li>SVN Independent & Duplex Houses</li> <li>World wide IT park</li> <li>North Arena SNT Township</li> </ul> </div> </div> </div> <div> <div style="padding: 0 15px"> <h2>Our Clients</h2> <div style="width:349px height:153px"> <img src="pic\text.png" width="100%" height=auto> </div> </div> </div> </div> </div> <!-- 最底部 --> <!-- bootstrap --> <div> <div class="container footerText"> <div> <div class="col-md-6 panel"> <div> <p> <a href="index.html">Home</a> | <a href="about.html">About</a> | <a href="services.html">Services</a> | <a href="price.html">Price</a> | <a href="projects.html">Projects</a> | <a href="contact.html">Contact</a> </p> </div> </div> <div class="col-md-6 panel"> <div> <p> Copyright © 2016.Company name All rights reserved.More Templates <a href="http://www.cssmoban.com/" target="_blank" style="color: #aaa;" >模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank" style="color: #aaa;">网页模板</a> </p> </div> </div> </div> </div> </div> </body> </html>