cuốn sách gpt4 ai đã làm

jquery - 如何更改 Logo 和 slider 之间的高度

In lại Tác giả: Walker 123 更新时间:2023-11-28 13:01:23 25 4
mua khóa gpt4 Nike

我想用这个脚本来展示一些产品。该脚本位于:http://tympanus.net/Tutorials/ItemSlider/

当您将网络浏览器从最大尺寸调整为更小尺寸时, Logo 和鞋子之间的高度对我来说太大了。我该如何改变它?

样式.css

@import url('demo.css');

.mi-slider {
vị trí: tương đối;
margin-top: 30px;
height: 490px;
}

.mi-slider ul {
kiểu danh sách: không có;
vị trí: tuyệt đối;
chiều rộng: 100%;
trái: 0;
bottom: 140px;
tràn: ẩn;
căn chỉnh văn bản: giữa;
sự kiện con trỏ: không có;
}

.no-js .mi-slider ul {
vị trí: tương đối;
left: auto;
bottom: auto;
lề: 0;
tràn: hiển thị;
}

.mi-slider ul.mi-current {
pointer-events: auto;
}

.mi-slider ul li {
hiển thị: khối nội tuyến;
phần đệm: 20px;
width: 20%;
chiều rộng tối đa: 300px;
-webkit-transform: translateX(600%);
-moz-transform: translateX(600%);
transform: translateX(600%);
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
}

.no-js .mi-slider ul li {
-webkit-transform: translateX(0);
-moz-transform: translateX(0);
transform: translateX(0);
}

.mi-slider ul li a,
.mi-slider ul li img {
hiển thị: khối;
lề: 0 tự động;
}

.mi-slider ul li a {
phác thảo: không có;
con trỏ: con trỏ;
}

.mi-slider ul li img {
chiều rộng tối đa: 100%;
đường viền: không có;
}

.mi-slider ul li h4 {
hiển thị: khối nội tuyến;
font-family: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif;
kiểu chữ: in nghiêng;
font-weight: 400;
font-size: 18px;
padding: 20px 10px 0;
}

.mi-slider ul li:hover {
opacity: 0.7;
}

.mi-slider nav {
vị trí: tương đối;
top: 400px;
căn chỉnh văn bản: giữa;
max-width: 800px;
lề: 0 tự động;
border-top: 5px solid #333;
}

.no-js nav {
hiển thị: không có;
}

.mi-slider nav a {
hiển thị: khối nội tuyến;
chuyển đổi văn bản: chữ hoa;
letter-spacing: 5px;
padding: 40px 30px 30px 34px;
vị trí: tương đối;
color: #888;
phác thảo: không có;
-webkit-transition: color 0.2s linear;
-moz-transition: color 0.2s linear;
transition: color 0.2s linear;
}

.mi-slider nav a:hover,
.mi-slider nav a.mi-selected {
màu: #000;
}

.mi-slider nav a.mi-selected:after,
.mi-slider nav a.mi-selected:before {
nội dung: '';
vị trí: tuyệt đối;
top: -5px;
border: solid transparent;
chiều cao: 0;
chiều rộng: 0;
vị trí: tuyệt đối;
sự kiện con trỏ: không có;
}

.mi-slider nav a.mi-selected:after {
border-color: transparent;
border-top-color: #fff;
border-width: 20px;
trái: 50%;
lề trái: -20px;
}

.mi-slider nav a.mi-selected:before {
border-color: transparent;
border-top-color: #333;
border-width: 27px;
trái: 50%;
margin-left: -27px;
}

/* Move classes and animations */

.mi-slider ul:first-child li,
.no-js .mi-slider ul li {
-webkit-animation: scaleUp 350ms ease-in-out both;
-moz-animation: scaleUp 350ms ease-in-out both;
animation: scaleUp 350ms ease-in-out both;
}

@-webkit-keyframes scaleUp {
0% { -webkit-transform: translateX(0) scale(0); }
100% { -webkit-transform: translateX(0) scale(1); }
}

@-moz-keyframes scaleUp {
0% { -moz-transform: translateX(0) scale(0); }
100% { -moz-transform: translateX(0) scale(1); }
}

@keyframes scaleUp {
0% { transform: translateX(0) scale(0); }
100% { transform: translateX(0) scale(1); }
}

.mi-slider ul:first-child li:first-child {
-webkit-animation-delay: 90ms;
-moz-animation-delay: 90ms;
animation-delay: 90ms;
}

.mi-slider ul:first-child li:nth-child(2) {
-webkit-animation-delay: 180ms;
-moz-animation-delay: 180ms;
animation-delay: 180ms;
}

.mi-slider ul:first-child li:nth-child(3) {
-webkit-animation-delay: 270ms;
-moz-animation-delay: 270ms;
animation-delay: 270ms;
}

.mi-slider ul:first-child li:nth-child(4) {
-webkit-animation-delay: 360ms;
-moz-animation-delay: 360ms;
animation-delay: 360ms;
}

/* moveFromRight */

.mi-slider ul.mi-moveFromRight li {
-webkit-animation: moveFromRight 350ms ease-in-out both;
-moz-animation: moveFromRight 350ms ease-in-out both;
animation: moveFromRight 350ms ease-in-out both;
}

/* moveFromLeft */

.mi-slider ul.mi-moveFromLeft li {
-webkit-animation: moveFromLeft 350ms ease-in-out both;
-moz-animation: moveFromLeft 350ms ease-in-out both;
animation: moveFromLeft 350ms ease-in-out both;
}

/* moveToRight */

.mi-slider ul.mi-moveToRight li {
-webkit-animation: moveToRight 350ms ease-in-out both;
-moz-animation: moveToRight 350ms ease-in-out both;
animation: moveToRight 350ms ease-in-out both;
}

/* moveToLeft */

.mi-slider ul.mi-moveToLeft li {
-webkit-animation: moveToLeft 350ms ease-in-out both;
-moz-animation: moveToLeft 350ms ease-in-out both;
animation: moveToLeft 350ms ease-in-out both;
}

/* Animation Delays */

.mi-slider ul.mi-moveToLeft li:first-child,
.mi-slider ul.mi-moveFromRight li:first-child,
.mi-slider ul.mi-moveToRight li:nth-child(4),
.mi-slider ul.mi-moveFromLeft li:nth-child(4) {
-webkit-animation-delay: 0ms;
-moz-animation-delay: 0ms;
animation-delay: 0ms;
}

.mi-slider ul.mi-moveToLeft li:nth-child(2),
.mi-slider ul.mi-moveFromRight li:nth-child(2),
.mi-slider ul.mi-moveToRight li:nth-child(3),
.mi-slider ul.mi-moveFromLeft li:nth-child(3) {
-webkit-animation-delay: 90ms;
-moz-animation-delay: 90ms;
animation-delay: 90ms;
}

.mi-slider ul.mi-moveToLeft li:nth-child(3),
.mi-slider ul.mi-moveFromRight li:nth-child(3),
.mi-slider ul.mi-moveToRight li:nth-child(2),
.mi-slider ul.mi-moveFromLeft li:nth-child(2) {
-webkit-animation-delay: 180ms;
-moz-animation-delay: 180ms;
animation-delay: 180ms;
}

.mi-slider ul.mi-moveToLeft li:nth-child(4),
.mi-slider ul.mi-moveFromRight li:nth-child(4),
.mi-slider ul.mi-moveToRight li:first-child,
.mi-slider ul.mi-moveFromLeft li:first-child {
-webkit-animation-delay: 270ms;
-moz-animation-delay: 270ms;
animation-delay: 270ms;
}

/* Animations */

@-webkit-keyframes moveFromRight {
0% { -webkit-transform: translateX(600%); }
100% { -webkit-transform: translateX(0%); }
}

@-webkit-keyframes moveFromLeft {
0% { -webkit-transform: translateX(-600%); }
100% { -webkit-transform: translateX(0%); }
}

@-webkit-keyframes moveToRight {
0% { -webkit-transform: translateX(0%); }
100% { -webkit-transform: translateX(600%); }
}

@-webkit-keyframes moveToLeft {
0% { -webkit-transform: translateX(0%); }
100% { -webkit-transform: translateX(-600%); }
}

@-moz-keyframes moveFromRight {
0% { -moz-transform: translateX(600%); }
100% { -moz-transform: translateX(0%); }
}

@-moz-keyframes moveFromLeft {
0% { -moz-transform: translateX(-600%); }
100% { -moz-transform: translateX(0%); }
}

@-moz-keyframes moveToRight {
0% { -moz-transform: translateX(0%); }
100% { -moz-transform: translateX(600%); }
}

@-moz-keyframes moveToLeft {
0% { -moz-transform: translateX(0%); }
100% { -moz-transform: translateX(-600%); }
}

@keyframes moveFromRight {
0% { transform: translateX(600%); }
100% { transform: translateX(0); }
}

@keyframes moveFromLeft {
0% { transform: translateX(-600%); }
100% { transform: translateX(0); }
}

@keyframes moveToRight {
0% { transform: translateX(0%); }
100% { transform: translateX(600%); }
}

@keyframes moveToLeft {
0% { transform: translateX(0%); }
100% { transform: translateX(-600%); }
}

.mi-slider {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

/* Media Queries */
@media screen and (max-width: 910px){
.mi-slider nav {
max-width: 90%;
}
.mi-slider nav a {
cỡ chữ: 12px;
padding: 40px 10px 30px 14px;
}
}

@media screen and (max-width: 740px){
.mi-slider {
height: 300px;
}
.mi-slider nav {
top: 220px;
}
}

@media screen and (max-width: 490px){
.mi-slider {
căn chỉnh văn bản: giữa;
chiều cao: tự động;
}

.mi-slider ul {
vị trí: tương đối;
hiển thị: nội tuyến;
bottom: auto;
pointer-events: auto;
}

.mi-slider ul li {
-webkit-animation: none !important;
-moz-animation: none !important;
animation: none !important;
-webkit-transform: translateX(0) !important;
-moz-transform: translateX(0) !important;
transform: translateX(0) !important;
padding: 10px 3px;
chiều rộng tối thiểu: 140px;
}

.mi-slider nav {
hiển thị: không có;
}
}

演示.css

/* General Demo Style */
@import url(http://fonts.googleapis.com/css?family=Lato:400,700,900);

html { height: 100%; }

*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
kích thước hộp: hộp viền;
phần đệm: 0;
lề: 0;
}

/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,
.clearfix:after {
nội dung: " ";
hiển thị: bảng;
}

.clearfix:after {
rõ ràng: cả hai;
}

.clearfix {
*zoom: 1;
}

thân hình {
font-family: 'Lato', Calibri, Arial, sans-serif;
nền: #fff;
font-weight: 400;
cỡ chữ: 15px;
màu: #333;
overflow: scroll;
tràn-x: ẩn;
}

Một {
màu sắc: #555;
trang trí văn bản: không có;
}

.container {
chiều rộng: 100%;
vị trí: tương đối;
}

.container > header {
chiều rộng: 90%;
max-width: 1240px;
lề: 0 tự động;
vị trí: tương đối;
phần đệm: 30px;
}

.chủ yếu {
phần đệm dưới cùng: 0px;
}

.container > header h1 {
font-size: 34px;
line-height: 38px;
lề: 0;
font-weight: 700;
màu: #333;
nổi: trái;
}

.container > header h1 span {
hiển thị: khối;
cỡ chữ: 20px;
line-height: 26px;
font-weight: 300;
}

/* Header Style */
.codrops-top {
chiều cao dòng: 24px;
font-size: 11px;
nền: #fff;
background: rgba(255, 255, 255, 0.5);
chuyển đổi văn bản: chữ hoa;
z-index: 9999;
vị trí: tương đối;
box-shadow: 1px 0px 2px rgba(0,0,0,0.2);
}

.codrops-top a {
padding: 0px 10px;
letter-spacing: 1px;
màu: #333;
hiển thị: khối nội tuyến;
}

.codrops-top a:hover {
background: rgba(255,255,255,0.8);
màu: #000;
}

.codrops-top span.right {
phao: đúng;
}

.codrops-top span.right a {
nổi: trái;
hiển thị: khối;
}

/* Demo Buttons Style */
.codrops-demos {
phao: đúng;
phần đệm trên cùng: 10px;
}

.codrops-demos a {
hiển thị: khối nội tuyến;
lề: 10px;
màu sắc: #666;
font-weight: 700;
line-height: 30px;
border-bottom: 4px solid transparent;
}

.codrops-demos a:hover {
màu: #000;
border-color: #000;
}

.codrops-demos a.current-demo,
.codrops-demos a.current-demo:hover {
color: #aaa;
border-color: #aaa;
}

和html





$(hàm() {

$( '#mi-slider' ).catslider();

});



当然查了,但不知道要修改什么。感谢您的帮助。

致以最诚挚的问候!

câu trả lời hay nhất

当页面处于小宽度/移动设备时,css 中的媒体查询部分会处理样式。位于Line #328

/* Media Queries */
@media screen and (max-width: 910px){
.mi-slider nav {
max-width: 90%;
}
.mi-slider nav a {
cỡ chữ: 12px;
padding: 40px 10px 30px 14px;
}
}

@media screen and (max-width: 740px){
.mi-slider {
height: 300px;
}
.mi-slider nav {
top: 220px;
}
}

@media screen and (max-width: 490px){
.mi-slider {
căn chỉnh văn bản: giữa;
chiều cao: tự động;
}

.mi-slider ul {
vị trí: tương đối;
hiển thị: nội tuyến;
bottom: auto;
pointer-events: auto;
}

.mi-slider ul li {
-webkit-animation: none !important;
-moz-animation: none !important;
animation: none !important;
-webkit-transform: translateX(0) !important;
-moz-transform: translateX(0) !important;
transform: translateX(0) !important;
padding: 10px 3px;
chiều rộng tối thiểu: 140px;
}

.mi-slider nav {
hiển thị: không có;
}
}

关于jquery - 如何更改 Logo 和 slider 之间的高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16129493/

25 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress