2015-01-02 3 views
0

내 웹 사이트에 이미지 효과를 표시하려고 할 때 표시되지 않습니다. jsfiddle.net에서 이미지를 실행하면 완벽하게 작동합니다. 그러나 내 모든 코드 내에서 테스트 할 때 내 이미지가 작동하지 않습니다. 이미지 주위에 테두리 그림자 효과가 필요합니다. 그렇게하는 코드는 내 코드에 있지만 내 웹 사이트 이미지에서 볼 수 있듯이 그림자는 없습니다.박스 - 섀도우 내 웹 사이트에서 작동하지 않습니다

이미지가없는 jsfiddle.net에서 이미지를 테스트하면 다음과 같습니다. enter image description here

내 코드 :

CSS :

#collage-container { 

     /*width: 699px;*/ 
     width: 800px; 
     /*height: 510px;*/ 
     height: 320px; 
     float: left; 
     margin-left: 200px; 
     margin-top: 10px; 
     background-color: #DADADA; 
    } 

    #collage-one{ 

    width: 699px; 
    height: 300px; 
    margin-left: 50px; 
    margin-top: 10px; 
    box-shadow: 0 0 20px black; 
    } 

HTML :

<div id = "collage-container"> 
    <img src = "longblue.jpg" id = "collage-one"/> 
    </div> 

enter image description here

업데이트 : 여기에 내 모든 CSS는

 <head> 

    <style type = "text/css"> 


    /* Formating for body of Web Site */ 
    * {margin: 0; padding: 0;} 
    body { 
    font-family: times new roman; 
    background-color: #ebebeb; 


    } 

    /* Fixed screen size so objects don't shift */ 
    #screen { 
    /* 
    min-width: 768px; 
    min-height: 100% !important; 
    margin-bottom: 30px; 
    */ 
    /* This locks everything in place*/ 
    top:0px; 
    margin: 0 auto; 
    width:1500px; 
    height: 100%; 
     padding-top:0; 
     padding-bottom: 30px; 
     margin-bottom: 150px; 
     postion: absolute; 
    margin-left: 70px; 

    } 

    /* Format for black strip header */ 
    #header { 
     background-color: black; 
     height: 168px; 
     width: 100%; 
     position: relative; 
    } 

    /* Class1: Holds the navigation buttons in header */ 
    .container { 
     width: 960px; 
     height: auto; 
     margin: 0 auto; 
     margin-left: 0; 
    } 

    /* Class2: Holds the small containers for short articles */ 
    .containerShort { 
       width: 480px; 
       height: auto; 
       margin: 0 auto; 
    } 

    /* Sub Classes: For Class2 */ 
    .short1 { 

     right: 30px; 
    } 

    .short2 { 
     right: 30px; 

    } 

    /* Format for Tree logo in header */ 
    #logoArea { 
     width: 300px; 
     height: 168px; 
     background-image: url(treesmall.jpg); 
     float: left; 
     margin-left: 30px; 
     } 

    /* Formating for location of navagation buttons */ 
    #navArea 
    { 
     height: 100%; 
     float: right; 
     margin-right: 0px; 
     margin-top: 80px; 
     margin-left: 100px; 


    } 

    /* Removes the bullets for navagation buttons in header */ 
    #nav 
    { 
     list-style: none; 

    } 

    /* Navagation formating */ 
    #nav a 
    { 
     color: white; 
     text-decoration: none; /*removes underline*/ 

    } 

    /* Formats the links of navagation buttons */ 
    #nav li 
    { 
     float: left; 
     margin-left: 60px; 
     background-color: #252525; 
     padding: 8px; 
     bording: 1px solid silver; 
     border-radius: 5px; 

    } 

    /* Makes a hovering effect where when the mouse hovers over the 
    links they change color */ 
    #nav li:hover 
    { 
     background-color: gray; 
    } 

    /* Sub class formating for container class */ 
    .page 
    { 
     background-color: white; 
     padding: 10px; 
     margin-top: 10px; 
     width: 1100px; 
     float: right; 
     border-radius: 5px; 
     padding-bottom: 1px; 

    } 

    /* Side quote article main page */ 
    .article 
      { 
       background-color: #ebebeb; 
       padding-top: 1px; 
       margin-top: 20px; 
       width: 120px; 
       float: right; 
       border-radius: 20px; 
       height: 300px; 
       border: 1px solid black; 
       margin-right: 20px; 
       text-align: left; 

    } 

    /* Formating for left sidebar of information */ 
    #sidebar { 

    background-color: #B4B4B4; 
    height: auto; 
    width:350px; 
    float:left; 
    margin-top: 10px; 
    border-radius: 5px; 
    padding: 10px; 
    color: #483D8B; 
    } 

    /* footer formating */ 
    #footer { 

     background-color: black; 
     height: 40px; 
     width: 1500px; 
     color: white; 
     padding-top: 10px; 
     position: relative center; 
     bottom: 0; 
     text-align: center; 
     margin-left:70px; 
    } 
    /* Formating of Header quote */ 
    #quote { 
     color: white; 
     float: right; 
    } 

    /* Paragraph formating */ 
    p { 
     color: black; 
     margin-bottom: 20px; 
     padding: 5px; 
     padding-left: 40px; 
    } 

    p.light { 

    color: white !important; 
    margin-bottom: 60px; 
    padding: 5px; 
    padding-left: 40px; 

    } 

    p .imagespace { 

    padding-left: 40px; 
    margin: auto; 
    } 

    h3 { 
     margin-bottom: 60px; 
    } 

    h2 { 

    font-family: "Times New Roman"; 
    font-style: oblique; 
    } 

    #collage-container { 

     /*width: 699px;*/ 
     width: 800px; 
     /*height: 510px;*/ 
     height: 320px; 
     float: left; 
     margin-left: 200px; 
     margin-top: 10px; 
     background-color: #DADADA; 
    } 

    #collage-one{ 

    width: 699px; 
    height: 300px; 
    margin-left: 50px; 
    margin-top: 10px; 
    box-shadow: 0 0 20px black; 
    } 

    /*#collage-two,#collage-three, 
    #collage-four{ 

    width: 226px; 
    height: 200px; 
    padding: 5px; 
    background-color: black; 
    background-position: top center; 
    float: right; 

    }*/ 

    /*#space { 

    width:300px; 
    height: 508px; 
    background-color: white; 
    float: left; 
    margin-top: 0; 
    margin-left: 120px; 
    box-shadow: hshadow, vshadow blur color 
    box-shadow: 10px 0 20px #B4B4B4; 
    border-radius: 10px; 
    }*/ 

    #ego { 
    box-shadow: 0 0 20px #B4B4B4; 
    } 

    #marquee{ 

    color: #483D8B; 
    margin-top: 10px; 
    margin-bottom: 0px; 
    width: 1025px; 
    float: right; 

    } 





    </style> 

    </head> 
+0

언급 한대로 JSFiddle에서 Chrome에서 잘 작동합니다. –

+0

예. 테스트 할 때 작동하지만 내 페이지에 구현되지 않은 경우 항상 이와 같은 문제가 발생하는 것 같습니다. – narue1992

+0

귀하의 사이트를 쉽게 보완 할 수있는 CSS가 필요합니다. – hungerstar

답변

0

의견의 조언을 통해 더 많은 브라우저 버전을 허용하도록 내 그림자를 수정해야하는 것처럼 보입니다.

감사합니다. 나는 그것을 가지고 놀 것입니다.

주 도움말 : @ Phillips126

+0

내가 묻는 것을 원치 않으면 IE의 어떤 버전을 사용하고 있습니까? @ hungerstar가 언급 할 때 이후 IE 버전에는 CSS 지원이 더 많이 포함됩니다. – Justin

+0

어느 것이 하나인지 알 수 없습니다. 나는 가지고 있고, 당신의 모범을 얻으려고 노력하고 있습니다 ... 그들은 그것을 받아들이지 않습니다 LOL – narue1992

+0

@ Phillips126 오 그 버전 : 10.0.9200.17148 – narue1992

관련 문제