mehran788
پنج شنبه 26 اردیبهشت 1392, 10:23 صبح
با سلام و عرض خسته نباشید خدمت دوستان
من تازه طراحی وب رو شروع کردم و دارم یاد می گیرم و دنبال آموزش می گشتم که تو همین تالار با پست طراحی یک وب سایت ساده روبرو شدم که تو part 1 اون با تگ div خیلی کار کرده بود
من هرچی روش فکر کردم و بررسی کردم نتونستم این تگ ها رو درک ککنم اگه ممکنه من کد رو اینجا می ذارم تا کسی کمی درباره این تگ واسم توضیح بده
کد css:
* {
margin=0;
padding=0;
}
body {
background-color: #FFF;
font-family: Tahoma;
font-size: 12px;
}
#Head-Bg {
background-image: url('image/header.png');
background-repeat: repeat-x;
main-height: 600px;
}
#Wraper {
width: 1000px;
margin: auto;
main-height:100px;
overflow: hidden;
}
#Header-Wraper {
width: 100px;
height: 130px;
float: right;
}
#Header-Logo-Wraper {
height: 84px;
margin: 16px auto auto;
width: 232px;
}
#Header-Logo1 {
background-image: url("Images/logo1-h.png");
background-repeat: no-repeat;
float: right;
height: 40px;
margin-top: 30px;
width: 165px;
}
#Header-Logo2 {
background-image: url("Images/logo2-h.png");
background-repeat: no-repeat;
float: right;
height: 47px;
margin-right: -34px;
width: 66px;
}
#Menu-Wraper {
width: 1000px;
height: 37px;
float: right;
}
#Menu-List-Wraper {
width: 700px;
height: 37px;
float: right;
}
#Search-Wraper {
float: left;
height: 31px;
margin-top: 4px;
width: 300px;
}
#Menu-List-Wraper ul {
display:inline;
list-style-type: none;
}
#Menu-List-Wraper ul li {
background-image: url('Images/Menu-Bg.png');
background-repeat: no-repeat;
float: right;
height: 37px;
width: 114px;
line-height: 33px;
text-align: center;
margin-right: 2px;
}
#Menu-List-Wraper ul li:Hover {
background-image: url('Images/Menu-Bg-Hover.png');
background-repeat: no-repeat;
}
#Menu-List-Wraper ul li a{
color: #06A9E0;
font-size: 13px;
padding: 8px 28px 10px 21px;
text-decoration: none;
}
#Menu-List-Wraper ul li a:Hover {
color:#fff;
text-decoration: none;
}
#Menu-Home a {
background-image: url("Images/Home-Icon.png");
background-repeat: no-repeat;
line-height: 25px;
margin-left: 8px;
padding: 0 6px 14px 28px;
}
#Menu-Home {
width: 45px;
height: 37px;
float: right;
background-image: url('Images/Menu-Bg-Home.png');
background-repeat: no-repeat;
}
#Menu-Home:Hover {
width: 45px;
height: 37px;
float: right;
background-image: url('Images/Menu-Bg-Home-Hover.png');
background-repeat: no-repeat;
}
#Search-Txt-Wraper {
width: 200px;
height:31px;
float: right;
}
#STW-R {
width: 6px;
height: 31px;
float: right;
background-image: url('Images/Search-Bg_R.png');
background-repeat: no-repeat;
}
#STW-C {
width: 188px;
height: 31px;
float: right;
background-image: url('Images/Search-Bg_C.png');
background-repeat: repeat-x;
}
#STW-L {
width: 6px;
height: 31px;
float: right;
background-image: url('Images/Search-Bg_L.png');
background-repeat: no-repeat;
}
#Btn-Search {
width: 30px;
height: 30px;
float: right;
background-image: url('Images/Search-Btn-Bg.png');
background-repeat: no-repeat;
background-position: center top;
position: relative;
right: 31px;
top: 1px;
}
#Btn-Search:Hover {
background-position: center -30px;
}
.FU-TXT {
background: none repeat scroll 0 0 transparent;
border: medium none;
color: #909090;
direction: rtl;
font-family: tahoma;
height: 27px;
width: 160px;
}
کد html:
<!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">
<head>
<title>وب سایت من</title>
<link href="Edu-Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="Head-Bg">
<div id="Wraper">
<div id="Header-Wraper">
<div id="Header-Logo-Wraper">
<div id="Header-Logo1"></div>
<div id="Header-Logo2"></div>
</div>
</div>
<div id="Menu-Wraper">
<div id="Menu-List-Wraper">
<div id="Menu-Home"><a href="#"></a></div>
<ul>
<li><a href="#">مقالات</a></li>
<li><a href="#">توضیحات</a></li>
<li><a href="#">درباره من</a></li>
<li><a href="#">تماس با من</a></li>
</ul>
</div>
<div id="Search-Wraper">
<div id="Btn-Search"></div>
<div id="Search-Txt-Wraper">
<div id="STW-R"></div>
<div id="STW-C"><input class="FU-TXT" id="Text1" type="text" value="جستجو.." onfocus="if(this.value == 'جستجو..') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'جستجو..'; }" /></div>
<div id="STW-L"></div>
</div>
</div>
</div>
</div>
</div>
من تو همین اول کد گیر کردم و نتونستم اونجور که باید این کد ها رو درک کنم تا بتونم خودم یکیش رو بنویسم
<div id="Head-Bg">
<div id="Wraper">
<div id="Header-Wraper">
<div id="Header-Logo1"></div>
<div id="Header-Logo2"></div>
</div>
</div>
</div>
ممنون میشم اگه کسی کمکم کنه
من تازه طراحی وب رو شروع کردم و دارم یاد می گیرم و دنبال آموزش می گشتم که تو همین تالار با پست طراحی یک وب سایت ساده روبرو شدم که تو part 1 اون با تگ div خیلی کار کرده بود
من هرچی روش فکر کردم و بررسی کردم نتونستم این تگ ها رو درک ککنم اگه ممکنه من کد رو اینجا می ذارم تا کسی کمی درباره این تگ واسم توضیح بده
کد css:
* {
margin=0;
padding=0;
}
body {
background-color: #FFF;
font-family: Tahoma;
font-size: 12px;
}
#Head-Bg {
background-image: url('image/header.png');
background-repeat: repeat-x;
main-height: 600px;
}
#Wraper {
width: 1000px;
margin: auto;
main-height:100px;
overflow: hidden;
}
#Header-Wraper {
width: 100px;
height: 130px;
float: right;
}
#Header-Logo-Wraper {
height: 84px;
margin: 16px auto auto;
width: 232px;
}
#Header-Logo1 {
background-image: url("Images/logo1-h.png");
background-repeat: no-repeat;
float: right;
height: 40px;
margin-top: 30px;
width: 165px;
}
#Header-Logo2 {
background-image: url("Images/logo2-h.png");
background-repeat: no-repeat;
float: right;
height: 47px;
margin-right: -34px;
width: 66px;
}
#Menu-Wraper {
width: 1000px;
height: 37px;
float: right;
}
#Menu-List-Wraper {
width: 700px;
height: 37px;
float: right;
}
#Search-Wraper {
float: left;
height: 31px;
margin-top: 4px;
width: 300px;
}
#Menu-List-Wraper ul {
display:inline;
list-style-type: none;
}
#Menu-List-Wraper ul li {
background-image: url('Images/Menu-Bg.png');
background-repeat: no-repeat;
float: right;
height: 37px;
width: 114px;
line-height: 33px;
text-align: center;
margin-right: 2px;
}
#Menu-List-Wraper ul li:Hover {
background-image: url('Images/Menu-Bg-Hover.png');
background-repeat: no-repeat;
}
#Menu-List-Wraper ul li a{
color: #06A9E0;
font-size: 13px;
padding: 8px 28px 10px 21px;
text-decoration: none;
}
#Menu-List-Wraper ul li a:Hover {
color:#fff;
text-decoration: none;
}
#Menu-Home a {
background-image: url("Images/Home-Icon.png");
background-repeat: no-repeat;
line-height: 25px;
margin-left: 8px;
padding: 0 6px 14px 28px;
}
#Menu-Home {
width: 45px;
height: 37px;
float: right;
background-image: url('Images/Menu-Bg-Home.png');
background-repeat: no-repeat;
}
#Menu-Home:Hover {
width: 45px;
height: 37px;
float: right;
background-image: url('Images/Menu-Bg-Home-Hover.png');
background-repeat: no-repeat;
}
#Search-Txt-Wraper {
width: 200px;
height:31px;
float: right;
}
#STW-R {
width: 6px;
height: 31px;
float: right;
background-image: url('Images/Search-Bg_R.png');
background-repeat: no-repeat;
}
#STW-C {
width: 188px;
height: 31px;
float: right;
background-image: url('Images/Search-Bg_C.png');
background-repeat: repeat-x;
}
#STW-L {
width: 6px;
height: 31px;
float: right;
background-image: url('Images/Search-Bg_L.png');
background-repeat: no-repeat;
}
#Btn-Search {
width: 30px;
height: 30px;
float: right;
background-image: url('Images/Search-Btn-Bg.png');
background-repeat: no-repeat;
background-position: center top;
position: relative;
right: 31px;
top: 1px;
}
#Btn-Search:Hover {
background-position: center -30px;
}
.FU-TXT {
background: none repeat scroll 0 0 transparent;
border: medium none;
color: #909090;
direction: rtl;
font-family: tahoma;
height: 27px;
width: 160px;
}
کد html:
<!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">
<head>
<title>وب سایت من</title>
<link href="Edu-Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="Head-Bg">
<div id="Wraper">
<div id="Header-Wraper">
<div id="Header-Logo-Wraper">
<div id="Header-Logo1"></div>
<div id="Header-Logo2"></div>
</div>
</div>
<div id="Menu-Wraper">
<div id="Menu-List-Wraper">
<div id="Menu-Home"><a href="#"></a></div>
<ul>
<li><a href="#">مقالات</a></li>
<li><a href="#">توضیحات</a></li>
<li><a href="#">درباره من</a></li>
<li><a href="#">تماس با من</a></li>
</ul>
</div>
<div id="Search-Wraper">
<div id="Btn-Search"></div>
<div id="Search-Txt-Wraper">
<div id="STW-R"></div>
<div id="STW-C"><input class="FU-TXT" id="Text1" type="text" value="جستجو.." onfocus="if(this.value == 'جستجو..') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'جستجو..'; }" /></div>
<div id="STW-L"></div>
</div>
</div>
</div>
</div>
</div>
من تو همین اول کد گیر کردم و نتونستم اونجور که باید این کد ها رو درک کنم تا بتونم خودم یکیش رو بنویسم
<div id="Head-Bg">
<div id="Wraper">
<div id="Header-Wraper">
<div id="Header-Logo1"></div>
<div id="Header-Logo2"></div>
</div>
</div>
</div>
ممنون میشم اگه کسی کمکم کنه