2017-01-06 2 views
0

URL 조정할 때 다른 DIV 중첩.응답 슬라이드 -

Dreamweaver 유체 격자 및 템플릿 사용.

HTML :

<!doctype html> 
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]--> 
<!--[if IE 7]> <html class="ie7 oldie"> <![endif]--> 
<!--[if IE 8]> <html class="ie8 oldie"> <![endif]--> 
<!--[if gt IE 8]><!--> 
<html class=""> 
<!-- InstanceBegin template="/Templates/2017.dwt" codeOutsideHTMLIsLocked="false" --> 
<!--<![endif]--> 
<head> 
<meta charset="utf-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<!-- InstanceBeginEditable name="doctitle" --> 
<title>Untitled Document</title> 
<!-- InstanceEndEditable --> 
<link href="fluid/boilerplate.css" rel="stylesheet" type="text/css"> 
<link href="2017fluid.css" rel="stylesheet" type="text/css"> 
<link href="2010copy.css" rel="stylesheet" type="text/css"> 
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css"> 
<!-- 
To learn more about the conditional comments around the html tags at the top of the file: 
paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ 

Do the following if you're using your customized build of modernizr (http://www.modernizr.com/): 
* insert the link to your js here 
* remove the link below to the html5shiv 
* add the "no-js" class to the html tags at the top 
* you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build 
--> 
<!--[if lt IE 9]> 
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> 
<![endif]--> 
<script src="fluid/respond.min.js"></script> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> 
<script src="responsiveslides.min.js"></script> 
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> 
<script> 
    $(function() { 
    $(".rslides").responsiveSlides({ 
     auto: true, 
     speed: 1500, 
     timeout: 4000, 
     maxwidth: "500", 
    }); 
    }); 
</script> 
<!-- InstanceBeginEditable name="head" --> 
<!-- InstanceEndEditable --> 
</head> 
<body> 
<div class="gridContainer clearfix"> 
    <div id="LayoutDiv1"><img src="images/Img_39211.jpg" alt="hot lime mortar" class="imgheader"></div> 
    <div id="rightcol"> 
    <ul id="MenuBar1" class="MenuBarVertical"> 
     <li><a href="#">Home</a> </li> 
     <li><a href="#">Hot Lime Mortar</a></li> 
     <li><a class="MenuBarItemSubmenu" href="#">Products</a> 
     <ul> 
      <li><a href="#">Hot Lime Mortar</a> </li> 
      <li><a href="#">Hydraulic Limes</a></li> 
      <li><a href="#">Finishes</a></li> 
      <li><a href="#">Eden Lime Insulation</a></li> 
      <li><a href="#">Savolit</a></li> 
      <li><a href="#">NBT</a></li> 
      <li><a href="#">Geocell</a></li> 
      <li><a href="#">Tools</a></li> 
      <li><a href="#">Materials</a></li> 
      <li><a href="#">Pozzolan</a></li> 
     </ul> 
     </li> 
     <li><a href="#">Hot Lime Training</a></li> 
     <li><a href="#">Eden Lime Insulation</a></li> 
     <li><a href="#">Gallery</a></li> 
     <li><a href="#">Contact</a></li> 
    </ul> 
    <p>&nbsp;</p> 
    </div> 
    <!-- InstanceBeginEditable name="EditRegion1" --> 
    <div id="leftcoltop"> 

    <ul class="rslides"> 
     <li><img src="slide1.jpg" alt=""></li> 
    <li><img src="slide2.jpg" alt=""></li> 
    <li><img src="slide3.jpg" alt=""></li> 
    <li><img src="slide4.jpg" alt=""></li> 
    <li><img src="slide5.jpg" alt=""></li> 
    <li><img src="slide6.jpg" alt=""></li> 
    <li><img src="slide7.jpg" alt=""></li> 
    <li><img src="slide8.jpg" alt=""></li> 
    <li><img src="slide9.jpg" alt=""></li> 
    <li><img src="slide10.jpg" alt=""></li> 
    <li><img src="slide11.jpg" alt=""></li> 
</ul> 



    </div> 
    <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="EditRegion5" --> 
    <div id="toprightinfo"> 

    <span class="toprighthd">Eden Hot Lime Mortar </span><br> 
    <span class="toprighthd">Manufacturer and Retailer 
    of Hot Lime Mortar, Lime Putty 
    & Lime Insulation.<br> 
    <br> 
    </span> 
    <span class="toprightp"> Call or Email Now to discuss how HLM can help your building project<br> 
07717400233<br> 
[email protected]</span> 
    <p class="toprightp"><br> 
    </p> 

    </div> 
    <!-- InstanceEndEditable --> 
    <div id="rightcolbody"><!-- InstanceBeginEditable name="EditRegion2" -->EditRegion2<!-- InstanceEndEditable --></div> 
    <div id="fotter"> 
    <h3><img src="images/keim.gif" alt="Keim" border="0"><img src="products/GEOCELLLogo.png" alt="Geocell"><img src="products/pavatex.png" alt="pavatex"></h3> 
    <h3>Hot Lime Mortar Ltd</h3> 
    <p><strong>Manufacturer and Retailer of Hot Lime Mortar and Lime Putty</strong></p> 
    <p>Edenholme, Great Musgrave, Kirkby Stephen, Cumbria, CA174DP<br> 
     Tel:07717400233 Email: [email protected]<br> 
     All Material on this site © Eden Lime Mortar</p> 
    </div> 
</div> 
<script type="text/javascript"> 
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"}); 
</script> 
</body> 
<!-- InstanceEnd --> 
</html> 

CSS - 필요한 경우 스타일

html, body, ul, ol, li, p, h1, h2, form, fieldset { 
    margin: 0px; 
    padding: 0px; 
    border: 0px; 
    list-style-image: url(none); 
} 


body { 
    font-family: Georgia, "Times New Roman", Times, serif; 
    font-size: 100.01%; 
    background-image: url(images/backgroundwall.jpg); 
    background-repeat: repeat; 
} 
#LayoutDiv1 { 

} 
.gridContainer.clearfix { 
    background-color: #756e52; 
} 


#leftcol { 
    background-color: #756e52; 
} 
#leftcoltop { 
    margin-left: 1px; 
} 

/*right col is actually left n vice versa*/ 
#rightcolbody { 
    background-color: #FFF; 
    margin-top: 5px; 
    margin-bottom: 5px; 
    padding: 0; 
} 
.floatright { 
    float: right; 
    border: 2px solid #150B0A; 
    margin-right: 5px; 
} 
.rslides { 
    position: relative; 
    list-style: none; 
    overflow: hidden; 
    width: 100%; 
    padding: 0; 
    margin: 0; 
    } 

.rslides li { 
    -webkit-backface-visibility: hidden; 
    position: absolute; 
    display: none; 
    width: 100%; 
    left: 0; 
    top: 0; 
    } 

.rslides li:first-child { 
    position: relative; 
    display: block; 
    float: left; 
    } 

.rslides img { 
    display: block; 
    height: auto; 
    float: left; 
    width: 100%; 
    border: 0; 
    } 

.hlmlogo { 

    display: block; 
    margin-left: auto; 
    margin-right: auto 
} 

    .imgheader { 
    margin-bottom: 15px; 
} 
.imglogo { 
    margin-top: 5px; 
    margin-bottom: 15px; 
} 
#rightcol { 
    margin-bottom: 5px; 
} 
.toprighthd { 
    font-family: "Book Antiqua", serif; 
    color: #FAF9ED; 
    font-size: 130%; 
    text-align: center; 
    margin-top: 10px; 
} 
.toprightp { 
    color: #EBE8BD; 
    font-size: 95%; 
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; 
    font-weight: normal; 
    text-align: center; 
} 

h1 { 
    font-family: "Book Antiqua", serif; 
    font-size-adjust: 140%; 
    color: #150B0A; 
    margin-left: 15px; 
} 
h2 { 
    font-family: "Book Antiqua", serif; 
    color: #372E25; 
    font-size: 125%; 
} 
h3 { 
    font-family: "Book Antiqua", serif; 
    font-size: 125%; 
    color: #8E8870; 
} 
h4 { 
} 
a { 
    color: #A29B81; 
} 
p { 
    font-family: Georgia, "Times New Roman", Times, serif; 
    color: #594D35; 
    font-size: 100%; 
    margin-right: 3px; 
    margin-left: 3px; 
} 
#fotter { 
    text-align: center; 
} 
#fotter h3 { 
    color: #B0AB8D; 
} 
#fotter p { 
    color: #EEEEEC; 
} 

이 상용구 CSS와 유체 CSS를 게시 할 수 편집하는 데 사용?

+2

Welcome to Stackoverflow. 다른 사용자가 귀하의 질문에 답변 할 수 있도록 도와주고 향후 사용자가 답변에서 배우는 것을 돕기 위해 [최소 검증 가능한 전체 예제] (https://stackoverflow.com/help/mcve)로 줄이십시오. –

+0

화면 크기가 줄어들 때 어떻게 보이게할까요? (https://i.imgur.com/vupGUZF.png)? – Rahul

답변

0

.MenuBarVertical.MenuBarVertical li은 너비를 8em으로 설정했습니다. 이 블록의 너비 스타일을 100 %로 변경하면 예상대로 작동합니다.

+0

그 덕분에 - 그것은 초기 problerm 해결하지만 지금은 하위 메뉴는 모바일보기로 크기가 조정되면 페이지의 측면에서 떨어지면? –

+0

그건'ul.MenuBarSubmenuVisible ul'이 불필요한 백분율 스타일을 가지고 있기 때문입니다 :'margin : -5 % 0 0 95 %;'. 이를 제거하거나 값을 변경하면 문제를 해결할 수 있습니다.) – Klakier

관련 문제