我正在使用SquareSpace,並且正在嘗試將自定義CSS添加到封面上的3張圖像。目前懸停的圖像會改變不透明度,然後出現一個藍色塊並顯示圖像的標題。我正在嘗試使藍色塊變大,但也要確保塊已修剪到實際圖像。正如你可以在下面的圖片中看到,有一點懸:SquareSpace客戶CSS標題懸停在圖像上
任何幫助,將不勝感激!
.sqs-gallery-block-grid .slide .margin-wrapper .image-slide-title {
display: block;
position: relative;
top: -15px;
text-align: center;
opacity: 0;
background-color: #1E75BB;
margin-bottom: 0px;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
}
.sqs-gallery-block-grid .slide .margin-wrapper:hover .image-slide-title {
display: block;
opacity: 50;
background-color: none;
text-align: center;
width: 100%;
}
.sqs-gallery-block-grid .slide .margin-wrapper .image-slide-title {
font-family: adelle-sans;
font-size: 16px;
color: #fff;
text-transform: uppercase;
}
.sqs-gallery-block-grid .slide .margin-wrapper:hover .image-slide-title {
font-family: adelle-sans;
font-size: 16px;
color: #fff;
text-transform: uppercase;
}
@media only screen and (max-width: 75px) {
.sqs-gallery-block-grid .slide .margin-wrapper .image-slide-title {
opacity: 50;
}
}
看來你的形象有問題,你可以解決它,所以我們可以幫你嗎? –
你正在尋找的目標是'.sqs-gallery-block-grid .sqs-gallery-design-grid-slide .margin-wrapper'。從那裏你可以風格它,但你想:) –