이전 목록 다음

부트스트랩 사용중 익스플로러랑 크롬이랑 출력이 다릅니다

2015-10-14 (수) 15:15:41 4,462

도와주세요...

사진은 각각 익스플로러와 크롬 차이 입니다...

크롬에서는 정상 출력하는데 익스플로러에서는 왼쪽 버튼이 좌측으로 붙어버립니다...

bda812af91f3e24c752339bd51de043c_1444803266_5252.jpg

bda812af91f3e24c752339bd51de043c_1444803266_5705.jpg

아래는 CSS 입니다

Copy
.carousel-control {  position: absolute;  top: 0;  bottom: 0;  left:0;  width: 15%;  font-size: 20px;  color: #fff;  text-align: center;  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);  filter: alpha(opacity=50);  opacity: .5;}.carousel-control.left {  background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);  background-image:      -o-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);  background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001)));  background-image:         linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);  background-repeat: repeat-x;}.carousel-control.right {  right:0;  left:auto;  background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);  background-image:      -o-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);  background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5)));  background-image:         linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);  background-repeat: repeat-x;}

html 소스입니다

Copy
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">                      <span class="fa fa-angle-left"></span>                    </a>                    <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">                      <span class="fa fa-angle-right"></span>                    </a>
|

답변 1개

크롬과 익스를 구분하여 각각 margin-left를 적용해주세요. 

답변을 작성하려면 로그인이 필요합니다.