گروه مقاله : طراحی سایت
تاريخ انتشار : 1395/08/08 - 21:17
كد :7300

طراحی سایت : صفحه اول نمونه سوم

نمونه کد صفحه اول قسمت سوم

آموزش طراحی سایت نمونه کد های صفحه اول قسمت سوم

 

<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3-theme-teal.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
<style>
.w3-sidenav a {padding:16px}
.navimg {float:left;width:33.33% !important}
</style>
<body>

<nav class="w3-sidenav w3-collapse w3-white w3-animate-left w3-large" style="z-index:3;width:300px;" id="mySidenav">
<ul class="w3-navbar w3-black w3-center">
<li class="navimg">
<a href="javascript:void(0)" onclick="openNav('nav01')">
<i class="fa fa-bars w3-xlarge"></i></a></li>
<li class="navimg">
<a href="javascript:void(0)" onclick="openNav('nav03')">
<i class="fa fa-file w3-xlarge"></i></a></li>
<li class="navimg">
<a href="javascript:void(0)" onclick="openNav('nav02')">
<i class="fa fa-camera w3-xlarge"></i></a>
</li>
</ul>

<div id="nav01">
<a href="#" class="w3-border-bottom w3-large"><img src="http://www.w3schools.com/images/w3schools.png" style="width:80%;"></a>
<a href="javascript:void(0)" onclick="w3_close()" class="w3-text-teal w3-hide-large w3-closenav w3-large">Close ×</a>
<a href="#">Learn HTML</a>
<a href="#">Learn W3.CSS</a>
<a href="#">Learn JavaScript</a>
<a href="#">Learn SQL</a>
<a href="#">Learn PHP</a>
</div>

<div id="nav02">
<a target="_blank" href="tryw3css_templates_black.htm"><img src="img_demo_black.png" style="width:100%;"></a>
<a target="_blank" href="tryw3css_examples_album.htm"><img src="img_demo_summer.jpg" style="width:100%;"></a>
<a target="_blank" href="tryw3css_examples_blog.htm"><img src="img_demo_blog.jpg" style="width:100%;"></a>
</div>

<div id="nav03">
<div class="w3-container w3-border-bottom">
<h1 class="w3-text-theme">W3.CSS</h1>
</div>
<ul class="w3-ul w3-large">
<li class="w3-padding-16">Smaller and faster</li>
<li class="w3-padding-16">Esier to use</li>
<li class="w3-padding-16">Esier to learn</li>
<li class="w3-padding-16">CSS only</li>
<li class="w3-padding-16">Speeds up apps</li>
<li class="w3-padding-16">CSS equality for all</li>
<li class="w3-padding-16">PC Laptop Tablet Mobile</li>
</ul>
</div>
</nav>

<div class="w3-overlay w3-hide-large" onclick="w3_close()" style="cursor:pointer" id="myOverlay"></div>

<div class="w3-main" style="margin-left:300px;">

<div id="myTop" class="w3-top w3-container w3-padding-16 w3-theme w3-large w3-hide-large">
<i class="fa fa-bars w3-opennav w3-xlarge w3-margin-left w3-margin-right" onclick="w3_open()"></i>
</div>

<header class="w3-container w3-theme w3-padding-64 w3-center">
<h1 class="w3-xxxlarge w3-padding-16">W3Schools.com</h1>
</header>

<div class="w3-container w3-padding-large w3-section w3-light-grey">
<h1 class="w3-jumbo">CSS</h1>
<p class="w3-xlarge">The Language for Styling Web Pages</p>
<a class="w3-btn w3-theme w3-hover-white" href="/css/default.asp">LEARN CSS</a>
<a class="w3-btn w3-theme w3-hover-white" href="/ccsref/default.asp">CSS REFERENCE</a>
<p class="w3-large">
<p><div class="w3-code cssHigh notranslate">
body {<br>
background-color: #d0e4fe;<br>}<br>h1 {<br>
color: orange;<br>
text-align: center;<br>}<br>p {<br>
font-family: "Times New Roman";<br>
font-size: 20px;<br>}
</div>
<a class="w3-btn w3-theme w3-hover-white" href="/css/tryit.asp?filename=trycss_default" target="_blank">Try it Yourself</a>
</div>

<div class="w3-container w3-padding-large w3-section w3-light-grey">
<h1 class="w3-jumbo">JavaScript</h1>
<p class="w3-xlarge">The Language for Programming Web Pages</p>
<a href="/js/default.asp" class="w3-btn w3-theme w3-hover-white">LEARN JS</a>
<a href="/jsref/default.asp" class="w3-btn w3-theme w3-hover-white">JS REFERENCE</a>

<p><div class="w3-code jsHigh notranslate">
// Click the button to change the color of this paragraph<br><br>function myFunction() {<br>
var x;<br>
x = document.getElementById("demo");<br>
x.style.fontSize = "25px"; <br>
x.style.color = "red"; <br>}
</div>
<a class="w3-btn w3-theme w3-hover-white" href="/js/tryit.asp?filename=tryjs_default" target="_blank">Try it Yourself</a>
</div>

<footer class="w3-container w3-padding-large w3-light-grey w3-justify w3-opacity">
<p><nav>
<a href="/forum/default.asp" target="_blank">FORUM</a> |
<a href="/about/default.asp" target="_top">ABOUT</a>
</nav></p>
</footer>

</div>

<script>
function w3_open() {
document.getElementById("mySidenav").style.display = "block";
document.getElementById("myOverlay").style.display = "block";
}
function w3_close() {
document.getElementById("mySidenav").style.display = "none";
document.getElementById("myOverlay").style.display = "none";
}
openNav("nav01");
function openNav(id) {
document.getElementById("nav01").style.display = "none";
document.getElementById("nav02").style.display = "none";
document.getElementById("nav03").style.display = "none";
document.getElementById(id).style.display = "block";
}
</script>
<script src="http://www.w3schools.com/lib/w3codecolors.js"></script>

</body>
</html>
 

مشاهده سایت

تعداد بازديد : 2073
نظرات بينندگان
غیر قابل انتشار : 0
در انتظار بررسی: 0
انتشار یافته : 1
maede
|
1397/03/02 - 13:52
0
0
واقعا ممنون از سایت عالیتون خیلی دنبال سورس کد اماده گشتم ولی بهتریناش تو سایت شما بود ممنون.
نظرات كاربران :