gpt4 book ai didi

html - 如何在不扩大图 block 大小的情况下让我的标题断开并显示省略号?

转载 作者:太空宇宙 更新时间:2023-11-04 06:00:50 26 4
gpt4 key购买 nike

我正在开发一个响应式网站,该网站包含带有标题和描述的图 block 。我遇到的问题是当屏幕尺寸变小时,图 block 变小,标题空间变小。当达到图 block 的大小时,文本应该被隐藏并在末尾显示一个省略号……。取而代之的是文本增加了整个图 block 的大小,但图 block 越来越高,超出了它应该能够达到的高度。关于如何使标题不换行并在不增加图 block 大小的情况下添加椭圆的任何建议?

我在我注意到问题的磁贴上添加了一张图片,然后为该页面添加了我的 CSS 和 HTML。

enter image description here

/* Float four columns side by side (desktop view)*/

.column {
position: relative;
/* display: flex; */
padding: 10px 10px 20px 10px
}

@media (min-width: 668px) {
.column {
display: inline-flex;
}
.tile-card {
width: 100%;
min-width: 175px;
}
}

@media (min-width: 1025px) {
.tile-card {
width: 100%;
max-width: 425px;
min-width: 175px;
}
}

@media (max-width: 667px) {
.column {
display: block;
}
}

.tile-card {
background-color: #FFF;
width: 100%;
height: 230px;
color: #fff;
border-style: solid;
border-color: #0006;
border-width: 1px;
border-radius: 5px;
}

.dash-title {
background-color: #00A0D3;
width: 100%;
height: 14%;
margin-bottom: 0px;
text-align: left;
border-style: solid;
border-color: #00A0D3;
border-width: 1px;
border-radius: 5px 5px 0px 0px;
padding-left: 20px;
padding-right: 20px;
padding-top: 8px;
font-weight: bold;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}


/*
.dash-title {
background-color: #00A0D3;
width: 100%;
height: 25%;
margin-bottom: 0px;
text-align: left;
border-style: solid;
border-color: #00A0D3;
border-width: 1px;
border-radius: 5px 5px 0px 0px;
padding-left: 20px;
padding-top: 10px;
font-weight: bold;
} */

.dash-description {
width: 70%;
height: 65%;
text-align: center;
display: inline-block;
float: left;
color: #00384f;
/* padding-top: 11px; */
}

.tile-icon {
display: inline-block;
margin-left: auto;
margin-right: auto;
height: 65%;
/* padding-top: 15px; */
float: left;
flex-shrink: 0;
flex-grow: 0;
flex-basis: 100px;
padding-left: 8px;
}

.flexContainer {
display: flex;
height: 75%;
position: relative;
}

.report-type {
/* display: none; */
display: inline-block;
margin-right: 10px;
width: 15px;
height: 15px;
float: right;
margin-top: 150px;
}

.foot {
background: #fff;
border-top: 1px solid rgba(0, 0, 0, 0.1);
color: #4d4d4d;
padding-top: 40px;
padding-bottom: 40px;
text-align: center;
width: 100%;
float: left;
/* position: relative;
bottom: 0px; */
position: absolute;
right: 0;
bottom: 0;
left: 0;
}

ul.linkTrail {
padding: 10px 16px;
list-style: none;
background-color: #fff;
}

ul.linkTrail li {
display: inline;
font-size: 14px;
}

ul.linkTrail li+li:before {
padding: 8px;
color: black;
content: "/\00a0";
}

ul.linkTrail li a {
color: #0275d8;
text-decoration: none;
padding-right: 8px;
}

ul.linkTrail li a:hover {
color: #01447e;
text-decoration: underline;
}

* {
box-sizing: border-box;
margin: auto;
font-family: "tahoma", Times, Serif;
}


/* Extra Large devices - 1025px and up will have 4 columns */

@media (min-width: 1025px) {
.col-extraLarge-3 {
float: left;
width: 25%;
}
}


/* Large devices - 992px to 1024px will have 3 columns */

@media (min-width: 992px) and (max-width: 1024px) {
.col-large-4 {
float: left;
width: 33.33%;
}
}


/* Medium devices - 668px to 991px will have 2 columns */

@media (min-width: 668px) and (max-width: 991px) {
.col-medium-6 {
float: left;
width: 50%;
}
}


/* Small devices - 667px and below will have 1 column */

@media (max-width: 667px) {
.col-small-12 {
float: left;
width: 100%;
}
div.article,
div.welcome {
padding: 0px 0px 10px 0px;
margin-top: -10px;
}
}
<!DOCTYPE html>
<html>

<head>
<link rel="stylesheet" href="TileTemplate.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
</head>

<body>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">​Bookings Trend</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">​Interactive dashboard that displays trends for software &amp; product bookings, deal counts, average selling prices and discounts over time.</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Detailed KPIs</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">High level views of the business and where we stand against weekly target for major indicators such as bookings, funnel, inflow and closed/lost.​<br/>​ </div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>​
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Executive KPI Summary</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Companywide information and statistics dashboard with views of where we stand against weekly</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Funnel Inflow Trends</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that shows trends in funnel inflow over time.​</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">​
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Funnel Trends</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that displays historical views of the funnel.​​<br/></div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Route To Market Bookings Trends​​<br/></div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that displays trends from a Route to Market perspective for software &amp; product bookings, deal counts, average selling prices and discounts over time. This view includes both a hierarchical view (single-crediting) and
overlay view (multi-crediting).</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Route To Market Funnel Trends</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that displays historical views from a Route to Market perspective of the funnel. Including opportunity count and average selling price. This view includes both a hierarchical view (single-crediting) and overlay view (multi-crediting).</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Weekly Forecast Call</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Detailed view of current quarter and next quarter deal rollup by region with field calls.​<br/></div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>

</div>​​​<br/>
</body>

</html>

最佳答案

这是一个使用 jQuery each 方法的答案。您可以将 70 切换为您想要的任何值。

如果你想让它响应更快,你可以将它包装在 $(window).resize() 函数中并检查浏览器窗口的宽度然后甚至不运行如果它在手机或平板电脑中,则为此。

// For each element with this class.
$('.dash-description').each(function() {
// Set a variable equal to the text of the element.
var inner_text = $(this).text();
// Checks to see how long the original length is. If the text is shorter than the value of 70, then don't run this next part.
if (inner_text.length > 70) {
// Trims the lines from the text and then pulls the first 70 characters
var new_text = $.trim(inner_text).substring(0, 70);
// Swaps the original text with the new truncated text and adds the ellipses
$(this).text(new_text + '...');
}
});
/* Float four columns side by side (desktop view)*/

.column {
position: relative;
/* display: flex; */
padding: 10px 10px 20px 10px
}

@media (min-width: 668px) {
.column {
display: inline-flex;
}
.tile-card {
width: 100%;
min-width: 175px;
}
}

@media (min-width: 1025px) {
.tile-card {
width: 100%;
max-width: 425px;
min-width: 175px;
}
}

@media (max-width: 667px) {
.column {
display: block;
}
}

.tile-card {
background-color: #FFF;
width: 100%;
height: 230px;
color: #fff;
border-style: solid;
border-color: #0006;
border-width: 1px;
border-radius: 5px;
}

.dash-title {
background-color: #00A0D3;
width: 100%;
height: 14%;
margin-bottom: 0px;
text-align: left;
border-style: solid;
border-color: #00A0D3;
border-width: 1px;
border-radius: 5px 5px 0px 0px;
padding-left: 20px;
padding-right: 20px;
padding-top: 8px;
font-weight: bold;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}


/*
.dash-title {
background-color: #00A0D3;
width: 100%;
height: 25%;
margin-bottom: 0px;
text-align: left;
border-style: solid;
border-color: #00A0D3;
border-width: 1px;
border-radius: 5px 5px 0px 0px;
padding-left: 20px;
padding-top: 10px;
font-weight: bold;
} */

.dash-description {
width: 70%;
height: 65%;
text-align: center;
display: inline-block;
float: left;
color: #00384f;
/* padding-top: 11px; */
}

.tile-icon {
display: inline-block;
margin-left: auto;
margin-right: auto;
height: 65%;
/* padding-top: 15px; */
float: left;
flex-shrink: 0;
flex-grow: 0;
flex-basis: 100px;
padding-left: 8px;
}

.flexContainer {
display: flex;
height: 75%;
position: relative;
}

.report-type {
/* display: none; */
display: inline-block;
margin-right: 10px;
width: 15px;
height: 15px;
float: right;
margin-top: 150px;
}

.foot {
background: #fff;
border-top: 1px solid rgba(0, 0, 0, 0.1);
color: #4d4d4d;
padding-top: 40px;
padding-bottom: 40px;
text-align: center;
width: 100%;
float: left;
/* position: relative;
bottom: 0px; */
position: absolute;
right: 0;
bottom: 0;
left: 0;
}

ul.linkTrail {
padding: 10px 16px;
list-style: none;
background-color: #fff;
}

ul.linkTrail li {
display: inline;
font-size: 14px;
}

ul.linkTrail li+li:before {
padding: 8px;
color: black;
content: "/\00a0";
}

ul.linkTrail li a {
color: #0275d8;
text-decoration: none;
padding-right: 8px;
}

ul.linkTrail li a:hover {
color: #01447e;
text-decoration: underline;
}

* {
box-sizing: border-box;
margin: auto;
font-family: "tahoma", Times, Serif;
}


/* Extra Large devices - 1025px and up will have 4 columns */

@media (min-width: 1025px) {
.col-extraLarge-3 {
float: left;
width: 25%;
}
}


/* Large devices - 992px to 1024px will have 3 columns */

@media (min-width: 992px) and (max-width: 1024px) {
.col-large-4 {
float: left;
width: 33.33%;
}
}


/* Medium devices - 668px to 991px will have 2 columns */

@media (min-width: 668px) and (max-width: 991px) {
.col-medium-6 {
float: left;
width: 50%;
}
}


/* Small devices - 667px and below will have 1 column */

@media (max-width: 667px) {
.col-small-12 {
float: left;
width: 100%;
}
div.article,
div.welcome {
padding: 0px 0px 10px 0px;
margin-top: -10px;
}
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">​Bookings Trend</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">​Interactive dashboard that displays trends for software &amp; product bookings, deal counts, average selling prices and discounts over time.</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Detailed KPIs</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">High level views of the business and where we stand against weekly target for major indicators such as bookings, funnel, inflow and closed/lost.</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Executive KPI Summary</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Companywide information and statistics dashboard with views of where we stand against weekly</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Funnel Inflow Trends</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that shows trends in funnel inflow over time.</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">​
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Funnel Trends</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that displays historical views of the funnel.</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Route To Market Bookings Trends​​<br/></div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that displays trends from a Route to Market perspective for software &amp; product bookings, deal counts, average selling prices and discounts over time. This view includes both a hierarchical view (single-crediting) and
overlay view (multi-crediting).</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Route To Market Funnel Trends</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that displays historical views from a Route to Market perspective of the funnel. Including opportunity count and average selling price. This view includes both a hierarchical view (single-crediting) and overlay view (multi-crediting).</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Weekly Forecast Call</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Detailed view of current quarter and next quarter deal rollup by region with field calls.​<br/></div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>

这是包含调整大小事件的版本:

// New function. Arguments are the element and the window width.
function wpso_08012019_truncate_text(element, window_width) {
// Loop through the passed elements.
element.each(function() {
// Set a var for the element's text.
var inner_text = $(this).text();
// Set a data attribute on the element with the original text. We'll need this later.
$(this).attr('data-original', inner_text);
// If the character count of the text is longer than this value (70), then do this next stuff.
if (inner_text.length > 70) {
// Set a new var with the text truncated to a set character count (70).
var new_text = $.trim(inner_text).substring(0, 70);
// Set the text of the element to the truncated text plus the ellipses
$(this).text(new_text + '...');
}

// If the window width is less than this, run this.
if (window_width < 768) {
// Set the text of the element to it's original text from the data-attribute we added earlier. Smart.
$(this).text($(this).data('original'));
}

});
}

$(window).resize(function() {
// On resize set the var for the window width
var window_width = $(window).width();
// Run the function on resize passing in the element and the window width.
wpso_08012019_truncate_text($('.dash-description'), window_width)

});

$(document).ready(function() {
// Trigger the window resize event on document ready.
$(window).trigger('resize');
});
/* Float four columns side by side (desktop view)*/

.column {
position: relative;
/* display: flex; */
padding: 10px 10px 20px 10px
}

@media (min-width: 668px) {
.column {
display: inline-flex;
}
.tile-card {
width: 100%;
min-width: 175px;
}
}

@media (min-width: 1025px) {
.tile-card {
width: 100%;
max-width: 425px;
min-width: 175px;
}
}

@media (max-width: 667px) {
.column {
display: block;
}
}

.tile-card {
background-color: #FFF;
width: 100%;
height: 230px;
color: #fff;
border-style: solid;
border-color: #0006;
border-width: 1px;
border-radius: 5px;
}

.dash-title {
background-color: #00A0D3;
width: 100%;
height: 14%;
margin-bottom: 0px;
text-align: left;
border-style: solid;
border-color: #00A0D3;
border-width: 1px;
border-radius: 5px 5px 0px 0px;
padding-left: 20px;
padding-right: 20px;
padding-top: 8px;
font-weight: bold;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}


/*
.dash-title {
background-color: #00A0D3;
width: 100%;
height: 25%;
margin-bottom: 0px;
text-align: left;
border-style: solid;
border-color: #00A0D3;
border-width: 1px;
border-radius: 5px 5px 0px 0px;
padding-left: 20px;
padding-top: 10px;
font-weight: bold;
} */

.dash-description {
width: 70%;
height: 65%;
text-align: center;
display: inline-block;
float: left;
color: #00384f;
/* padding-top: 11px; */
}

.tile-icon {
display: inline-block;
margin-left: auto;
margin-right: auto;
height: 65%;
/* padding-top: 15px; */
float: left;
flex-shrink: 0;
flex-grow: 0;
flex-basis: 100px;
padding-left: 8px;
}

.flexContainer {
display: flex;
height: 75%;
position: relative;
}

.report-type {
/* display: none; */
display: inline-block;
margin-right: 10px;
width: 15px;
height: 15px;
float: right;
margin-top: 150px;
}

.foot {
background: #fff;
border-top: 1px solid rgba(0, 0, 0, 0.1);
color: #4d4d4d;
padding-top: 40px;
padding-bottom: 40px;
text-align: center;
width: 100%;
float: left;
/* position: relative;
bottom: 0px; */
position: absolute;
right: 0;
bottom: 0;
left: 0;
}

ul.linkTrail {
padding: 10px 16px;
list-style: none;
background-color: #fff;
}

ul.linkTrail li {
display: inline;
font-size: 14px;
}

ul.linkTrail li+li:before {
padding: 8px;
color: black;
content: "/\00a0";
}

ul.linkTrail li a {
color: #0275d8;
text-decoration: none;
padding-right: 8px;
}

ul.linkTrail li a:hover {
color: #01447e;
text-decoration: underline;
}

* {
box-sizing: border-box;
margin: auto;
font-family: "tahoma", Times, Serif;
}


/* Extra Large devices - 1025px and up will have 4 columns */

@media (min-width: 1025px) {
.col-extraLarge-3 {
float: left;
width: 25%;
}
}


/* Large devices - 992px to 1024px will have 3 columns */

@media (min-width: 992px) and (max-width: 1024px) {
.col-large-4 {
float: left;
width: 33.33%;
}
}


/* Medium devices - 668px to 991px will have 2 columns */

@media (min-width: 668px) and (max-width: 991px) {
.col-medium-6 {
float: left;
width: 50%;
}
}


/* Small devices - 667px and below will have 1 column */

@media (max-width: 667px) {
.col-small-12 {
float: left;
width: 100%;
}
div.article,
div.welcome {
padding: 0px 0px 10px 0px;
margin-top: -10px;
}
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Bookings Trend</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that displays trends for software &amp; product bookings, deal counts, average selling prices and discounts over time.</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Detailed KPIs</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">High level views of the business and where we stand against weekly target for major indicators such as bookings, funnel, inflow and closed/lost.<br /></div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Executive KPI Summary</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Companywide information and statistics dashboard with views of where we stand against weekly</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Funnel Inflow Trends</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that shows trends in funnel inflow over time.​</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Funnel Trends</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that displays historical views of the funnel.<br /></div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Route To Market Bookings Trends<br /></div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that displays trends from a Route to Market perspective for software &amp; product bookings, deal counts, average selling prices and discounts over time. This view includes both a hierarchical view (single-crediting) and
overlay view (multi-crediting).</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Route To Market Funnel Trends</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Interactive dashboard that displays historical views from a Route to Market perspective of the funnel. Including opportunity count and average selling price. This view includes both a hierarchical view (single-crediting) and overlay view (multi-crediting).</div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>
<div class="column col-extraLarge-3 col-large-4 col-medium-6 col-small-12">
<a href="#" target="_blank">
<div class="tile-card">
<div class="dash-title">Weekly Forecast Call</div>
<div class="flexContainer">
<img class="tile-icon" src="/sites/bic/PublishingImages/Legal.png" alt="" />
<div class="dash-description">Detailed view of current quarter and next quarter deal rollup by region with field calls.<br /></div>
<img class="report-type" src="/sites/bic/PublishingImages/power-bi.png" alt="" />
</div>
</div>
</a>
</div>

这是调整大小版本的 fiddle :

https://jsfiddle.net/disinfor/9fe3758p/12/

关于html - 如何在不扩大图 block 大小的情况下让我的标题断开并显示省略号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57313563/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com