添加的内容 删除的内容
imported>Wr 无编辑摘要 |
imported>Wr 小 (文本替换 - 替换“sonic.wiki”为“sonicpedia.org”) |
||
(未显示同一用户的9个中间版本) | |||
第3行: | 第3行: | ||
<html> |
<html> |
||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"> |
|||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script> |
|||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.min.js"></script> |
|||
<style> |
|||
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="true"> |
|||
.jcarousel-wrapper { |
|||
<div class="carousel-indicators"> |
|||
margin: 20px auto; |
|||
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button> |
|||
position: relative; |
|||
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button> |
|||
border: 10px solid #fff; |
|||
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2" aria-label="Slide 3"></button> |
|||
width: 800px; |
|||
</div> |
|||
height: 450px; |
|||
<div class="carousel-inner"> |
|||
-webkit-border-radius: 5px; |
|||
<div class="carousel-item active"> |
|||
-moz-border-radius: 5px; |
|||
<img src="https://sonic.wiki/images/a/ac/SonicPrime_Banner_800x450.png" class="d-block w-100" alt="..."> |
|||
border-radius: 5px; |
|||
-webkit-box-shadow: 0 0 2px #999; |
|||
-moz-box-shadow: 0 0 2px #999; |
|||
box-shadow: 0 0 2px #999; |
|||
} |
|||
.jcarousel-wrapper .photo-credits { |
|||
position: absolute; |
|||
right: 15px; |
|||
bottom: 0; |
|||
font-size: 13px; |
|||
color: #fff; |
|||
text-shadow: 0 0 1px rgba(0, 0, 0, 0.85); |
|||
opacity: .66; |
|||
} |
|||
.jcarousel-wrapper .photo-credits a { |
|||
color: #fff; |
|||
} |
|||
/** Carousel **/ |
|||
.jcarousel { |
|||
position: relative; |
|||
overflow: hidden; |
|||
} |
|||
.jcarousel ul { |
|||
width: 10000em; |
|||
position: relative; |
|||
list-style: none; |
|||
margin: 0; |
|||
padding: 0; |
|||
} |
|||
.jcarousel li { |
|||
float: left; |
|||
} |
|||
/** Carousel Controls **/ |
|||
.jcarousel-control-prev, |
|||
.jcarousel-control-next { |
|||
position: absolute; |
|||
top: 200px; |
|||
width: 30px; |
|||
height: 30px; |
|||
text-align: center; |
|||
background: #4E443C; |
|||
color: #fff; |
|||
text-decoration: none; |
|||
text-shadow: 0 0 1px #000; |
|||
font: 24px/27px Arial, sans-serif; |
|||
-webkit-border-radius: 30px; |
|||
-moz-border-radius: 30px; |
|||
border-radius: 30px; |
|||
-webkit-box-shadow: 0 0 2px #999; |
|||
-moz-box-shadow: 0 0 2px #999; |
|||
box-shadow: 0 0 2px #999; |
|||
} |
|||
.jcarousel-control-prev { |
|||
left: -50px; |
|||
} |
|||
.jcarousel-control-next { |
|||
right: -50px; |
|||
} |
|||
.jcarousel-control-prev:hover span, |
|||
.jcarousel-control-next:hover span { |
|||
display: block; |
|||
} |
|||
.jcarousel-control-prev.inactive, |
|||
.jcarousel-control-next.inactive { |
|||
opacity: .5; |
|||
cursor: default; |
|||
} |
|||
/** Carousel Pagination **/ |
|||
.jcarousel-pagination { |
|||
position: absolute; |
|||
bottom: 0; |
|||
left: 15px; |
|||
} |
|||
.jcarousel-pagination a { |
|||
text-decoration: none; |
|||
display: inline-block; |
|||
font-size: 11px; |
|||
line-height: 14px; |
|||
min-width: 14px; |
|||
background: #fff; |
|||
color: #4E443C; |
|||
border-radius: 14px; |
|||
padding: 3px; |
|||
text-align: center; |
|||
margin-right: 2px; |
|||
opacity: .75; |
|||
} |
|||
.jcarousel-pagination a.active { |
|||
background: #4E443C; |
|||
color: #fff; |
|||
opacity: 1; |
|||
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75); |
|||
} |
|||
</style> |
|||
<script> |
|||
(function($) { |
|||
$(function() { |
|||
$('.jcarousel').jcarousel(); |
|||
$('.jcarousel-control-prev') |
|||
.on('jcarouselcontrol:active', function() { |
|||
$(this).removeClass('inactive'); |
|||
}) |
|||
.on('jcarouselcontrol:inactive', function() { |
|||
$(this).addClass('inactive'); |
|||
}) |
|||
.jcarouselControl({ |
|||
target: '-=1' |
|||
}); |
|||
$('.jcarousel-control-next') |
|||
.on('jcarouselcontrol:active', function() { |
|||
$(this).removeClass('inactive'); |
|||
}) |
|||
.on('jcarouselcontrol:inactive', function() { |
|||
$(this).addClass('inactive'); |
|||
}) |
|||
.jcarouselControl({ |
|||
target: '+=1' |
|||
}); |
|||
$('.jcarousel-pagination') |
|||
.on('jcarouselpagination:active', 'a', function() { |
|||
$(this).addClass('active'); |
|||
}) |
|||
.on('jcarouselpagination:inactive', 'a', function() { |
|||
$(this).removeClass('active'); |
|||
}) |
|||
.jcarouselPagination(); |
|||
}); |
|||
})(jQuery); |
|||
</script> |
|||
<div class="jcarousel-wrapper"> |
|||
<div class="jcarousel"> |
|||
<ul> |
|||
<li><img src="https://sonicpedia.org/images/a/ac/SonicPrime_Banner_800x450.png" width="800" height="450" alt=""></li> |
|||
<li><img src="https://sonicpedia.org/images/6/66/SonicFrontiers_Banner_800x450.png" width="800" height="450" alt=""></li> |
|||
<li><img src="https://sonicpedia.org/images/b/bd/SonicForcesMobile_Banner_800x450.png" width="800" height="450" alt=""></li> |
|||
</ul> |
|||
</div> |
</div> |
||
<div class="carousel-item"> |
|||
<!-- <p class="photo-credits"> |
|||
<img src="https://sonic.wiki/images/6/66/SonicFrontiers_Banner_800x450.png" class="d-block w-100" alt="..."> |
|||
Sonicpedia |
|||
< |
</p> --> |
||
<img src="https://sonic.wiki/images/b/bd/SonicForcesMobile_Banner_800x450.png" class="d-block w-100" alt="..."> |
|||
<a href="#" class="jcarousel-control-prev">‹</a> |
|||
</div> |
|||
<a href="#" class="jcarousel-control-next">›</a> |
|||
</div> |
|||
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev"> |
|||
< |
<p class="jcarousel-pagination"> |
||
<span class="visually-hidden">Previous</span> |
|||
</ |
</p> |
||
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next"> |
|||
<span class="carousel-control-next-icon" aria-hidden="true"></span> |
|||
<span class="visually-hidden">Next</span> |
|||
</button> |
|||
</div> |
</div> |
||
</html> |
</html> |
2023年6月29日 (四) 20:53的最新版本
<html>
<style> .jcarousel-wrapper {
margin: 20px auto; position: relative; border: 10px solid #fff; width: 800px; height: 450px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; -webkit-box-shadow: 0 0 2px #999; -moz-box-shadow: 0 0 2px #999; box-shadow: 0 0 2px #999;
}
.jcarousel-wrapper .photo-credits {
position: absolute; right: 15px; bottom: 0; font-size: 13px; color: #fff; text-shadow: 0 0 1px rgba(0, 0, 0, 0.85); opacity: .66;
}
.jcarousel-wrapper .photo-credits a {
color: #fff;
}
/** Carousel **/
.jcarousel {
position: relative; overflow: hidden;
}
.jcarousel ul {
width: 10000em; position: relative; list-style: none; margin: 0; padding: 0;
}
.jcarousel li {
float: left;
}
/** Carousel Controls **/
.jcarousel-control-prev, .jcarousel-control-next {
position: absolute; top: 200px; width: 30px; height: 30px; text-align: center; background: #4E443C; color: #fff; text-decoration: none; text-shadow: 0 0 1px #000; font: 24px/27px Arial, sans-serif; -webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px; -webkit-box-shadow: 0 0 2px #999; -moz-box-shadow: 0 0 2px #999; box-shadow: 0 0 2px #999;
}
.jcarousel-control-prev {
left: -50px;
}
.jcarousel-control-next {
right: -50px;
}
.jcarousel-control-prev:hover span, .jcarousel-control-next:hover span {
display: block;
}
.jcarousel-control-prev.inactive, .jcarousel-control-next.inactive {
opacity: .5; cursor: default;
}
/** Carousel Pagination **/
.jcarousel-pagination {
position: absolute; bottom: 0; left: 15px;
}
.jcarousel-pagination a {
text-decoration: none; display: inline-block; font-size: 11px; line-height: 14px; min-width: 14px; background: #fff; color: #4E443C; border-radius: 14px; padding: 3px; text-align: center; margin-right: 2px; opacity: .75;
}
.jcarousel-pagination a.active {
background: #4E443C; color: #fff; opacity: 1; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75);
} </style> <script>
(function($) { $(function() { $('.jcarousel').jcarousel();
$('.jcarousel-control-prev') .on('jcarouselcontrol:active', function() { $(this).removeClass('inactive'); }) .on('jcarouselcontrol:inactive', function() { $(this).addClass('inactive'); }) .jcarouselControl({ target: '-=1' });
$('.jcarousel-control-next') .on('jcarouselcontrol:active', function() { $(this).removeClass('inactive'); }) .on('jcarouselcontrol:inactive', function() { $(this).addClass('inactive'); }) .jcarouselControl({ target: '+=1' });
$('.jcarousel-pagination') .on('jcarouselpagination:active', 'a', function() { $(this).addClass('active'); }) .on('jcarouselpagination:inactive', 'a', function() { $(this).removeClass('active'); }) .jcarouselPagination(); }); })(jQuery);
</script>
- <img src="https://sonicpedia.org/images/a/ac/SonicPrime_Banner_800x450.png" width="800" height="450" alt="">
- <img src="https://sonicpedia.org/images/6/66/SonicFrontiers_Banner_800x450.png" width="800" height="450" alt="">
- <img src="https://sonicpedia.org/images/b/bd/SonicForcesMobile_Banner_800x450.png" width="800" height="450" alt="">
<a href="#" class="jcarousel-control-prev">‹</a> <a href="#" class="jcarousel-control-next">›</a>
</html>