Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก

ข้อตกลงการใช้งานกระดานข่าวดิสคัสไทย DiscuzThai Agreement (English Version) ประกาศดิสคัสไทย - ทำเนียบดิสคัสภาษาไทย

Discuz! X3.5 Thai R20231001 Rev.8 (NEW) [วิดีโอช่วยสอน] อัปเกรด Discuz! X3.4 เป็น X3.5 Discord ของ Discuz! Thai Community อย่างเป็นทางการ

Discuz! X3.4 Thai R20220811 (REV.75) สิ้นสุดการสนับสนุน Discuz! X3.4 ภาษาไทยตั้งแต่วันนี้เป็นต้นไป (ขอแนะนำให้อัปเกรดเป็น X3.5 แทน)

ค้นหา
แท็กยอดนิยม: ดิสคัสภาษาไทย Discuz Thai
ดู: 6035|ตอบกลับ: 3

[CSS] ขอผู้รู้ช่วยด้วยครับ script template

[คัดลอกลิงก์]
thaiterbor โพสต์ 2012-9-29 20:38:06 |โหมดอ่าน
แก้ไขครั้งสุดท้ายโดย thaiterbor เมื่อ 2012-9-29 20:40


ผมจะตัดสวนรูปภาพใหญ่ออก  จะขยับ  ขอความขึ้นมาแทน  แก้จากหน้า index แต่มันมีช่องว่าง เกิดขึ้น

เข้าไป ไล่ลบ จาก css ก็ยังไม่เจอ   

ดูให้ทีครับ ผม งง

อันนี้ไฟล์ index.html
  1. <script type="text/javascript" src="js/jquery-1.4.2.min.js" ></script>
  2.         <script type="text/javascript" src="js/cufon-yui.js"></script>
  3.         <script type="text/javascript" src="js/Myriad_Pro_italic_400-Myriad_Pro_italic_600.font.js"></script>
  4.         <script type="text/javascript" src="js/cufon-replace.js"></script>       
  5.         <script type="text/javascript" src="js/jquery.faded.js"></script>
  6.         <script type="text/javascript" src="js/script.js"></script>
  7.         <!--[if lt IE 7]>
  8.                 <link rel="stylesheet" href="css/ie/ie6.css" type="text/css" media="screen">
  9.                 <script type="text/javascript" src="js/ie_png.js"></script>
  10.                 <script type="text/javascript">
  11.                                 ie_png.fix('.png, .logo, .extra-banner');
  12.                 </script>
  13.         <![endif]-->
  14.         <!--[if lt IE 9]>
  15.                 <script type="text/javascript" src="js/html5.js"></script>
  16.         <![endif]-->
  17. </head>
  18. <body>
  19.         <!-- header -->
  20.         <header>
  21.                 <div class="container_16">
  22.                         <div class="logo">
  23.                                 <h1><a href="index.html"><strong>Hanuman</strong> Insulation</a></h1>
  24.                         </div>
  25.                         <nav>
  26.                                 <ul>
  27.                                         <li><a href="index.html" class="current">หน้าแรก</a></li>
  28.                                         <li><a href="index-1.html">บริการของเรา</a></li>
  29.                                         <li><a href="index-2.html">รายละเอียด</a></li>
  30.                                         <li><a href="index-4.html">ถาม/ตอบ</a></li>
  31.                                         <li><a href="index-6.html">ติดต่อเรา</a></li>
  32.                                 </ul>
  33.                         </nav>
  34.                        
  35.                         <!-- faded slider begin -->

  36.                         <div id="faded">
  37.                                 <div class="rap">
  38.                                         <a href="#"><img src="images/big-img1.jpg" alt="" width="571" height="398"></a>
  39.                                         <a href="#"><img src="images/big-img2.jpg" alt="" width="571" height="398"></a>
  40.                                         <a href="#"><img src="images/big-img3.jpg" alt="" width="571" height="398"></a>
  41.                                 </div>
  42.                                 <h5><strong>ส่วนหนึ่งของลูกค้าที่ใช้บริการของเรา</strong></h5>
  43.                                 <ul class="pagination">
  44.                                         <li>
  45.                                                 <a href="#" rel="0">
  46.                                                         <img src="images/f_thumb1.png" alt="">
  47.                                                         <span class="left">
  48.                                                                 Villa<br />
  49.                                                                 2007 year<br />
  50.                                                                 5000 sq.ft
  51.                                                         </span>
  52.                                                         <span class="right">
  53.                                                                 Brick, glass<br />
  54.                                                                 3 beds<br />
  55.                                                                 2 baths
  56.                                                         </span>
  57.                                                 </a>
  58.                                         </li>
  59.                                         <li>
  60.                                                 <a href="#" rel="1">
  61.                                                         <img src="images/f_thumb2.png" alt="">
  62.                                                         <span class="left">
  63.                                                                 Villa<br />
  64.                                                                 2009 year<br />
  65.                                                                 3500 sq.ft
  66.                                                         </span>
  67.                                                         <span class="right">
  68.                                                                 Brick, glass<br />
  69.                                                                 5 beds<br />
  70.                                                                 3 baths
  71.                                                         </span>
  72.                                                 </a>
  73.                                         </li>
  74.                                         <li>
  75.                                                 <a href="#" rel="2">
  76.                                                         <img src="images/f_thumb3.png" alt="">
  77.                                                         <span class="left">
  78.                                                                 Villa<br />
  79.                                                                 2010 year<br />
  80.                                                                 4200 sq.ft
  81.                                                         </span>
  82.                                                         <span class="right">
  83.                                                                 Brick, glass<br />
  84.                                                                 4 beds<br />
  85.                                                                 3 baths
  86.                                                         </span>
  87.                                                 </a>
  88.                                         </li>
  89.                                 </ul>
  90.                                 <img src="images/extra-banner.png" alt="" class="extra-banner">
  91.                         </div>
  92.                         <!-- faded slider end -->
  93.                 </div>
  94.         </header>
  95.         <!-- content -->
  96.         <section id="content">
  97.                 <div class="container_16">
  98.                         <div class="clearfix">
  99.                                 <section id="mainContent" class="grid_10">
  100.                                         <article>
  101.                                                 <h2>Hanuman Insulation</h2>
  102. <p>หนุมาน คอร์ปอเรชั่น รับเหมางาน INSULATION ทุกประเภท</p>
  103.                                                
  104.                                                 <p>รับเหมาประกอบ ติดตั้งงาน JACKET และ ฉนวนกันความร้อน TANK and PIPING โรงงานอุตสาหกรรม    <br>
  105.                                                 รับเหมาประกอบ ติดตั้ง งานท่อดักส์<br>
  106.                                                 รับเหมาติดตั้ง ซ่อมแซม และ เปลี่ยนหลังคาแมนทอลชีท <br>
  107.                                                 รับติดตั้ง ตาข่าย และ อุปกรณ์กันนก อาคาร โกดังและไลน์ผลิต<br>
  108.                                                 รับเหมาเช็ดกระจกอาคาร ที่สูง และเปลี่ยนซิลิโคนกระจกที่สูง<br>
  109.                                                 รับเหมาปัดหยากไย่ คราบสกปรก และทาสี อาคาร โกดัง และ โรงงานอุตสาหกรรม <br>  
  110.                                                 รับเหมาทำความสะอาดสิ่งสกปรก ที่เกิดจากกระบวนการผลิตของเครื่องจักร  และ โรงงานอุตสาหกรรม<br>
  111. <p> ปัจจุบันบริษัทฯ มีความพร้อมโดยมีทีมงานรองรับการบริการให้แก่ท่านทั่วทุกภูมิภาค  ทั้งนี้บริษัทฯขอเสนอรายละเอียดเกี่ยวกับการดำเนินการของบริษัท  เพื่อให้ท่านได้กรุณาพิจารณาถ้าท่านต้องการข้อมูลรายละเอียดเพิ่มเติมประการใด โปรดกรุณาติดต่อ               ข้าพเจ้า โทรศัพท์หมายเลข 0-4323-6565 แฟกซ์ 0-4323-6565    มือถือ 086-3188870 , เพื่อ จะได้จัดส่งเจ้าหน้าที่               ไปเรียนชี้แจงรายละเอียด และเสนอข้อมูลเพิ่มเติมได้ทันที    หวังเป็นอย่างยิ่งว่าคงจะได้มีโอกาสได้รับใช้ท่านในเร็ววันนี้</p>

  112.                                                 <a href="#" class="button">ดูรายละเอียดเพิ่มเติม</a>
คัดลอกไปที่คลิปบอร์ด
อันนี้ไฟล์ css ครับ
  1. /* Getting the new tags to behave */
  2. article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, meter, nav, output, progress, section, source, video{display:block}
  3. mark, rp, rt, ruby, summary, time{display:inline}
  4. /* Global properties ======================================================== */
  5. body {background:#1d1d1d;font-family:Arial, Helvetica, sans-serif;font-size:100%;line-height:1.125em;color:#c0c0c0}
  6. .ic, .ic a {border:0;float:right;background:#000;color:#f00;width:100%;line-height:10px;font-size:10px;margin:-50% 0 0 0;overflow:hidden;padding:0}
  7. html {min-width:980px}
  8. html, body {height:100%}
  9. /* Global Structure ============================================================= */
  10. .container_16 {font-size:.75em;position:relative}
  11.         /* Header */
  12.         header {height:625px;overflow:hidden;border-bottom:2px solid #2a2a2a;background:url(../images/header-pattern.gif) 50% 0 #1d1d1d}
  13.         /* Content */
  14.         #content {padding:37px 0 90px 0;background:#121212}
  15.                 #mainContent {padding:13px 0 0 0}
  16.         /* Footer */
  17.         footer {border-top:1px solid #292929;padding:40px 0 40px 0}
  18. /* Left & Right alignment */
  19. .fleft {float:left}
  20. .fright {float:right}
  21. .clear {clear:both}
  22. .col-1, .col-2, .col-3 {float:left}
  23. .alignright {text-align:right}
  24. .aligncenter {text-align:center}
  25. .wrapper {width:100%;overflow:hidden}
  26. /* The inside class provides consistent padding. To be used often! */
  27. .inside{padding:20px}
  28. /*----- form defaults -----*/
  29. input, select, textarea {font-family:Arial, Helvetica, sans-serif;font-size:1em;vertical-align:middle;font-weight:normal}
  30. /*----- other -----*/
  31. figure {margin:0 24px 0 0;float:left;padding:4px;background:#fff;position:relative;border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px;behavior:url(js/PIE.htc)}
  32. figure.alt {margin-right:5px}
  33. figure.last {margin-right:0}
  34. .img-box {width:100%;overflow:hidden;padding-bottom:20px}
  35. .extra-wrap {overflow:hidden}
  36. p {margin-bottom:18px}
  37. .p1 {margin-bottom:9px}
  38. .p2 {margin-bottom:18px}
  39. .p3 {margin-bottom:27px}
  40. /*----- txt, links, lines, titles -----*/
  41. a {color:#c0c0c0;outline:none}
  42. a:hover {text-decoration:none}
  43. h2 {font-size:33px;color:#fff;line-height:1.2em;font-style:italic;font-weight:normal;letter-spacing:-1px;margin-bottom:.5em}
  44. h3 {font-size:1em;line-height:16px;font-weight:normal;text-transform:uppercase;color:#c0c0c0;margin-bottom:5px}
  45. h4 {font-size:1em;color:#616161;margin-bottom:12px}
  46. h5 {font-size:15px;line-height:20px;font-weight:normal;color:#909090;font-style:italic;margin-bottom:1em}
  47. hgroup h5 {margin-bottom:4px}
  48. hgroup h4 {margin-bottom:18px}
  49. .button {display:inline-block;position:relative;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:#d42400;background:-webkit-gradient(linear, 0 0, 0 70%, from(#ed2800), to(#b21e00));background:-moz-linear-gradient(#ed2800, #b21e00 70%);background:linear-gradient(#ed2800, #b21e00 70%);-pie-background:linear-gradient(#ed2800, #b21e00 70%);behavior:url(js/PIE.htc);padding:0 18px 0 18px;line-height:35px;color:#fff;font-weight:bold;text-decoration:none;-webkit-transition-duration:0.5s}
  50.         .button:hover {background:#fff;color:#000}
  51. /*==================boxes====================*/
  52. .box {background:url(../images/box-bg.gif) 0 100% repeat-x #b5c83c;padding:24px 18px 40px 20px;border:1px solid #c9dd47;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;behavior:url(js/PIE.htc);position:relative;color:#fff}
  53.         .box h2 {color:#121212;background:url(../images/bd_bot.gif) 0 100% repeat-x;padding-bottom:20px;margin-bottom:20px;line-height:30px;letter-spacing:-1px}
  54.         .box h3 {font-weight:normal;color:#000;font-size:16px;line-height:22px;text-transform:none}
  55.                 .box h3 a {color:#000}
  56. .address {float:left;margin:0 30px 10px 0}
  57. .address.last {margin-right:0}
  58.         .address dt {margin-bottom:4px;text-transform:uppercase}
  59.         .address dd {clear:both}
  60.                 .address dd span {float:left;padding-right:25px}
  61.                 .address dd a {color:#c0c0c0}
  62. /* Header ---------------------------------------- */
  63. /* Logo */
  64. header .logo {position:absolute;left:45px;top:70px;background:url(../images/logo.png) no-repeat 0 0;padding:20px 0 0 20px}
  65.         header .logo h1 {font-size:38px;line-height:1.2em;color:#c3c3c3;font-weight:normal;font-style:italic;letter-spacing:-1px}
  66.                 header .logo h1 a {color:#c3c3c3;text-decoration:none}
  67.                         header .logo h1 a strong {color:#fff}
  68. /* Navigation */
  69. header nav {position:absolute;right:25px;top:97px}
  70.         header nav ul li {float:left;padding-left:6px}
  71.                 header nav ul li a {float:left;color:#fff;text-decoration:none;width:80px;text-align:center;line-height:31px;font-size:14px}
  72.                 header nav ul li a:hover, header nav ul li a.current {background:url(../images/nav-bg.gif) 0 0 repeat-x;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px}
  73. /* Faded Slider */
  74. #faded {position:absolute;left:0;top:161px;padding-bottom:20px}
  75. /*
  76. * Required:If fixed height, state it here
  77. */
  78. #faded .rap {background:url(../images/img-wrapper-bg.jpg) no-repeat 50% 0 #d92400;border:1px solid #e46b00;width:589px;height:416px;border-radius:8px;-moz-border-radius:8px;-webkit-border-radius:8px;box-shadow:-2px 8px 5px rgba(0, 0, 0, .6);-moz-box-shadow:-2px 8px 5px rgba(0, 0, 0, .6);-webkit-box-shadow:-2px 8px 5px rgba(0, 0, 0, .6);z-index:10;overflow:hidden}
  79.         #faded .rap img {margin:9px 0 0 9px}
  80. #faded ul.pagination {position:absolute;left:537px;top:10px;background:url(../images/pagination-splash.gif) no-repeat 0 0 #2a2a2a;border:1px solid #3a3a3a;border-radius:8px;-moz-border-radius:8px;-webkit-border-radius:8px;box-shadow:-2px 8px 5px rgba(0, 0, 0, .4);-moz-box-shadow:-2px 8px 5px rgba(0, 0, 0, .4);-webkit-box-shadow:-2px 8px 5px rgba(0, 0, 0, .4);z-index:9;padding:25px 0 25px 0}
  81.         #faded ul.pagination li {width:429px;position:relative;background:url(../images/line-bot.gif) no-repeat 77px 100%;padding-bottom:1px;height:1%}
  82.         #faded ul.pagination li:last-child {background:none}
  83.                 #faded ul.pagination li a {display:block;padding:16px 40px 14px 77px;overflow:hidden;color:#7f7f7f;text-decoration:none;font-size:13px;line-height:28px;height:1%;cursor:pointer;-moz-transition:all 0.3s ease-out; /* FF3.7+ */ -o-transition:all 0.3s ease-out; /* Opera 10.5 */ -webkit-transition:all 0.3s ease-out; /* Saf3.2+, Chrome */ }
  84.                 #faded ul.pagination li a:hover, #faded ul.pagination li.current a {background-color:#1d1d1d;color:#fff}
  85.                         #faded ul.pagination li a img {float:left;margin-right:28px}
  86.                         #faded ul.pagination li a span.left {float:left;width:100px}
  87.                         #faded ul.pagination li a span.right {float:left;width:80px}
  88. #faded .extra-banner {position:absolute;left:485px;top:307px;z-index:11}
  89. /* Content
  90. ---------------------------------------- */
  91. #mainContent article {padding:0 0 32px 0;margin-bottom:30px;border-bottom:1px dashed #323232}
  92. #mainContent article.last {padding-bottom:0;margin-bottom:0;border:none}
  93. /* Aside */
  94. aside article {padding-bottom:0;margin-bottom:35px}
  95. aside article.last {margin-bottom:0}
  96. /* List of images */
  97. .img-list {padding-bottom:9px}
  98.         .img-list li {float:left;padding:0 9px 9px 0;width:109px;height:93px}
  99.                 .img-list li a {float:left;padding:4px;background:#fff;position:relative;z-index:1;border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px;behavior:url(js/PIE.htc);-webkit-transition-duration:0.5s}
  100.                         .img-list li a:hover {z-index:2;background:#ce2300;-webkit-transform:scale(1.5)}
  101. /* Accordion */
  102. .accordion dt {font-size:16px;line-height:1.2em;color:#000;position:relative;padding:10px 0 5px 40px;height:1%}
  103.         .accordion dt img {position:absolute;left:0;top:10px}
  104.         .accordion dt a {color:#000}
  105. .accordion dd {display:none;padding:0 0 0 40px}
  106. /* Lists */
  107. .list1 li {background:url(../images/arrow1.gif) no-repeat 0 7px;padding:0 0 6px 15px;font-size:13px;zoom:1}
  108.         .list1 li a {color:#fff;font-weight:bold}
  109. /*===== footer =====*/
  110. footer .container_16 {font-size:.625em}
  111.         footer nav ul {overflow:hidden;margin:0 0 6px -11px}
  112.                 footer nav ul li {display:inline;margin-left:-1px}
  113.                         footer nav ul li a {border-left:1px solid #777;padding:0 9px 0 11px;color:#777;text-transform:uppercase;text-decoration:none;-moz-transition:all 0.3s ease-out; /* FF3.7+ */ -o-transition:all 0.3s ease-out; /* Opera 10.5 */ -webkit-transition:all 0.3s ease-out; /* Saf3.2+, Chrome */}
  114.                         footer nav ul li a:hover {color:#e1e1e1}
  115.         footer .copy {}
  116.                 footer .copy span {text-transform:uppercase;color:#e1e1e1}
  117.                 footer .copy a {color:#777}
  118. /*----- forms -----*/
  119. #contacts-form fieldset {border:none}
  120.         #contacts-form label {display:block;height:26px;overflow:hidden}
  121.                 #contacts-form span {float:left;width:66px}
  122.                 #contacts-form input {float:left;background:#1e1e1e;border:1px solid #a4a4a4;width:210px;padding:1px 5px 1px 5px;color:#fff}
  123.                 #contacts-form textarea {float:left;width:210px;padding:1px 5px 1px 5px;height:195px;background:#1e1e1e;border:1px solid #a4a4a4;overflow:auto;color:#fff}
  124.                 #contacts-form .button {float:right;margin-left:16px;margin-top:14px}
  125. /*==========================================*/
คัดลอกไปที่คลิปบอร์ด
ตามรูปครับ  อยากเอารูปที่ 1 ออก แล้วขยับรูปที่ 2 ขึ้นไปแทน

ผมลองลบ แล้ว มันเกิดช่องว่าง

ช่วยด้วยครับ



อันนี้รูปที่ต้องการขยับขึ้นไปแทนที่


อันนี้มันเกิดช่องว่างครับ---แก้ไขไม่ให้เกิดช่องว่างยังไง

ขออภัย! โพสต์นี้มีไฟล์แนบหรือรูปภาพที่ไม่ได้รับอนุญาตให้คุณเข้าถึง

คุณจำเป็นต้อง ลงชื่อเข้าใช้ เพื่อดาวน์โหลดหรือดูไฟล์แนบนี้ คุณยังไม่มีบัญชีใช่ไหม? สมัครสมาชิก

x
I~DiscuzX_Serie โพสต์ 2012-9-29 20:57:12
ผมมีข้อสงสัยว่า

1. นั้นเป็น template แจกใช่รึเปล่า
2. คุณได้รับจ้างออกแบบเว็บรึป่าว

ถ้าไม่จริงต้องขอโทษด้วย เพราะผมไม่ค่อยชอบ พวกที่ทำแบบนี้

แก้ที่ css ตัวนี้ ปรับที่ height:625px;
  1. header {height:625px;overflow:hidden;border-bottom:2px solid #2a2a2a;background:url(../images/header-pattern.gif) 50% 0 #1d1d1d}
คัดลอกไปที่คลิปบอร์ด
 เจ้าของ| thaiterbor โพสต์ 2012-9-29 21:01:42
ผมทำเว็บให้พี่ชายครับ ผมทำงานที่ บริษัทนี้ อะครับ

จะลองดูครับ

ของฟรีครับ
 เจ้าของ| thaiterbor โพสต์ 2012-9-29 21:21:05
ได้แล้วครับ  ขอบคุณ ติดขัดอีก จะ ขอถามอีกครับ  
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

รายละเอียดเครดิต

รายชื่อผู้กระทำผิด|Archiver|ดิสคัส ไทย Follow us: Become a fan on facebook. Follow us on Twitter.

GMT+7, 2024-4-29 10:27

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

ตอบกระทู้ ขึ้นไปด้านบน ไปที่หน้ารายการกระทู้