等级等同于另一类

时间:2018-03-22 21:59:20

标签: css overflow overlay summary squarespace

我正在使用CSS和position:absolute强制使用Squarepace中未提供的摘要标题叠加功能。这些是我遇到的问题:

对于包含5张图像的摘要,将宽度设置为20%我认为会完全覆盖图片,但每张图片叠加层之间存在间隙。有没有办法让它等于它来源的摘要图像?

其次,我试图让截断属性切断行尾的文本,但我无法接受它。

这是我正在处理的网站:页面底部的http://www.sunsetstudiosent.com

这是我目前使用的代码:

.sqs-block-summary-v2 .summary-content {
  text-align: left;
  position: absolute;
  bottom: 0px;
  padding: 5px;
  margin: 0;
  height: 50px;
  width: 20%;
  text-overflow: ellipsis;
  background: rgba(39,39,39,0.5); /* colour of background behind the title and excerpt */
}
.summary-title-link{
  text-overflow: ellipsis;
  width: 20%;
  color: rgba(249,249,249,1) !important; /* color of title links */
}
.sqs-block-summary-v2 .summary-block-setting-show-title .summary-thumbnail-container{
  margin-bottom: 0 !important; /* fix to bottom of thumbnail */
  overflow: hidden; /* hide anything that doesn't fit */
}

1 个答案:

答案 0 :(得分:0)

It seems that your problem disappear when you set :

    .summary-content {
         width: 20.2%;
     }

I saw that your class "sql-gallery-design-carousel-slide" have also its width set to 20.2%.