2013-04-14 4 views
0

나는 내 CSS에서 '수직'으로 회전 한 jquery 아코디언에 제목이 있습니다. 이 기능은 Chrome에서는 작동하지만 Firefox 또는 Internet Explorer에서는 작동하지 않습니다.jQuery 제목 텍스트 방향 - firefox

나는 '! important'를 추가하려했으나 여전히 회전을 표시하지 않습니까? 등 파이어 폭스, IE에 대한 -ms-에 대한 -moz- ... 당신이 속성을 지원하는 브라우저 무엇인지 알고 싶다면

: http://caniuse.com/#search=transform

#contentAccordion{ 
    margin:0 auto; 
    height:500px; 
    width: 100%; 


} 

ul.accordion{ 
    list-style:none; 
    position:absolute; 
    left: 1px; 
    top:0px; 
    font-family: Cambria, serif; 
    font-size: 16px; 
    font-style: italic; 
    line-height: 1.5em; 
    width: 100%; 

} 
ul.accordion li{ 
    float:right; 
    width:115px; 
    height:380px; 
    display:block; 
    border-right:2px solid #fff; 
    border-bottom:2px solid #fff; 
    background-color:#fff; 
    background-repeat:no-repeat; 
    background-position:center center; 
    position:relative; 
    overflow:hidden; 
    cursor:pointer; 
    -moz-box-shadow:1px 3px 15px #555; 
    -webkit-box-shadow:1px 3px 15px #555; 
    box-shadow:1px 3px 15px #555; 
} 
ul.accordion li.bg1{ 
    background-image:url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/air.jpg); 
} 
ul.accordion li.bg2{ 
    background-image:url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/2.jpg); 
} 
ul.accordion li.bg3{ 
    background-image:url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/3.jpg); 
} 
ul.accordion li.bg4{ 
    background-image:url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/4.jpg); 
} 
ul.accordion li.bg5{ 
    background-image:url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/air.jpg); 
} 

ul.accordion li.bleft{ 
    border-left:2px solid #fff; 
} 
ul.accordion li .heading { 
background-color: rgba(245, 240, 240, 0.65); 
padding: 10px; 
margin-top: 250px; 
opacity: 0.6; 
text-transform: uppercase; 
font-style: normal; 
font-weight: bold; 
letter-spacing: 10px; 
font-size: 25px; 
color: rgb(12, 11, 11); 
text-align: center; 
text-shadow: -1px -1px 1px #ccc; 
-webkit-transform: translatey(-100%) rotate(-90deg); 
line-height: 80px; 
height: 80px; 
width: 280px; 
margin-left: -100px; 

} 
ul.accordion li .description{ 
    position:absolute; 
    width:260px; 
    height:175px; 
    bottom:0px; 
    left:0px; 
    display:none; 
} 
ul.accordion li .description h2{ 
    text-transform:uppercase; 
    font-style:normal; 
    font-weight:bold; 
    letter-spacing:1px; 
    font-size:45px; 
    color:#444; 
    text-align:left; 
    margin:0px 0px 15px 20px; 
    text-shadow:-1px -1px 1px #ccc; 
} 
ul.accordion li .description p{ 
    line-height:14px; 
    margin:10px 22px; 
    font-family: "Trebuchet MS", sans-serif; 
    font-size: 12px; 
    font-style: italic; 
    font-weight: normal; 
    text-transform: none; 
    letter-spacing: normal; 
    line-height: 1.6em; 
} 
ul.accordion li .description a{ 
    position:absolute; 
    bottom:5px; 
    left:20px; 
    text-transform:uppercase; 
    font-style:normal; 
    font-size:11px; 
    text-decoration:none; 
    color:#888; 
} 
ul.accordion li .description a:hover{ 
    color:#333; 
    text-decoration:underline; 
} 

ul.accordion li .bgDescription{ 
    background:transparent url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/bgDescription.png) repeat-x top left; 
    height:340px; 
    position:absolute; 
    bottom:0px; 
    left:0px; 
    width:260px; 
    display:none; 
} 

/* Vertical Accordion Style */ 

.container { 
     width:100% !important; 
     position:relative; 
     margin:40px auto 0 auto; 
     top: -17px; 
     left: 0px; 
} 


.va-wrapper{ 
    width:100%; 
    height:100%; 
    position:absolute; 
    overflow:hidden; 
    background:#000; 
     left: 0px; 
} 
.va-slice{ 
    cursor:pointer; 
    position:absolute; 
    width:100%; 
    left:0px; 
    overflow:hidden; 
} 
.va-slice-1{ 
    background:#000 url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/Airfreight10.png) no-repeat center center; 
} 
.va-slice-2{ 
    background:#000 url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/Seafreight2.png) no-repeat center center; 
} 
.va-slice-3{ 
    background:#000 url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/Satellite.png) no-repeat center center; 
} 
.va-slice-4{ 
    background:#000 url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/Guarding11.png) no-repeat center center; 
} 
.va-slice-5{ 
    background:#000 url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/Move3.png) no-repeat center center; 
} 
.va-slice-6{ 
    background:#000 url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/Investigations2.png) no-repeat center center; 
} 
.va-slice-7{ 
    background:#000 url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/transport2.png) no-repeat center center; 
} 
.va-slice-color-1{ 
    background-color:#97c5eb; 
} 
.va-slice-color-2{ 
    background-color:#68ace5; 
} 
.va-slice-color-3{ 
    background-color:#0072cf; 
} 
.va-slice-color-4{ 
    background-color:#0039a6; 
} 
.va-slice-color-5{ 
    background-color:#00338e; 
} 
.va-slice-color-6{ 
    background-color:#002c76; 
} 
.va-slice-color-7{ 
    background-color:#002144; 
} 
.va-title{ 
    font-family: 'Open Sans Condensed', sans-serif; 
    text-transform:uppercase; 
    font-size:40px; 
    margin-left:20px; 
    color:#fff; 
    text-shadow: 0px 0px 1px white; 
} 
.va-content{ 
    display:none; 
    margin-left:25px; 


} 
.va-slice p{ 
    font-size: 22px; 
    font-style: italic; 
    font-family:Georgia, serif; 
} 
.va-slice ul{ 
    margin-top:20px; 
} 
.va-slice ul li{ 
    float:left; 
    margin:0px 2px; 
} 
.va-slice ul li a{ 
    color:#000; 
    background:#eede2f; 
    padding:3px 6px; 
    font-size:14px; 
    font-family:'PT Sans', sans-serif; 
    text-transform:uppercase; 
} 
.va-slice ul li a:hover{ 
    background:#000; 
    color:#fff; 
    text-shadow:none; 
} 
.va-nav span{ 
    width:40px; 
    height:25px; 
    background:transparent url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/prev.png) no-repeat center center; 
    position:absolute; 
    top:-35px; 
    left:50%; 
    margin-left:-20px; 
    text-indent:-9000px; 
    opacity:0.7; 
    cursor:pointer; 

    z-index:100; 
} 
.va-nav span.va-nav-next{ 
    background-image:url(http://www.fsi.lookinside.co.za/wp-content/uploads/2013/04/next.png); 
    top:auto; 
    bottom:-35px; 
} 
.va-nav span:hover{ 
    opacity:1.0; 
} 
+1

'-webkit'은 WebKit 브라우저에서만 작동합니다. 그 단서는 이름 그대로입니다. 당신은 접두사 접두어'moz','-o','-ms' 등을 사용해야 할 수도 있습니다. –

답변

1

당신은 당신은 다른 공급 업체 접두사를 잊어 -webkit-transform: translatey(-100%) rotate(-90deg);

사용 외관상으로는, 당신은 그 재산을위한 접두어 -moz-를 필요로하지 않는다, Firefox는 이미 그것을 실행했다.

모범 사례 : 브라우저가 접두사 지원을 제거하는 경우에도,

-webkit-transform: translatey(-100%) rotate(-90deg); 
transform: translatey(-100%) rotate(-90deg); 

그런 식으로, 여전히 미래에 작동합니다 : 항상 맨 아래에있는 공급 업체 접두사없이 규칙을 정의합니다.

+0

고맙습니다. 이제는 파이어 폭스에서 일하고 있습니다. IE에서 작동하려면 -ms-를 삽입합니까? – user1426583

+0

여기서 볼 수 있듯이, http://caniuse.com/#search=transform IE 10에서 지원됩니다. IE 9에는'-ms-'가 필요하고, IE7에서는'transform'을 지원하지 않습니다. 희망이 도움이됩니다. – wakooka

+0

감사합니다. 훌륭한 사이트. 나는 이제 이것을 시도했지만 지금은 내 텍스트가 모두 IE에서 사라지고있다? '-ms-transform : scale (0.8) rotate (90deg); -ms-transform-origin : 0 % 100 %;' – user1426583