【发布时间】:2019-02-19 12:54:19
【问题描述】:
我有这个弹出框,当您将鼠标悬停在它上面时,它会告诉您信用卡的 CVV 代码在哪里,问题是默认文本太大,我似乎找不到在哪里使它变小。
我的html是:
<div
class="sprite_icons icon_creditcard_code"
data-trigger="hover"
aria-hidden="true"
data-toggle="popover"
data-placement="right"
title="Security Code"
data-content="This is the text I want to change i'ts really long, longer than this.
>
</div>
虽然我认为如果我添加一个 CSS 类是行不通的,但我会向你展示它以防万一:
.sprite_icons {
float: left;
background-image: url(/static/img/sprite_icons.png);
background-repeat: no-repeat;
}
.icon_creditcard_code {
width: 32px;
height: 20px;
background-position: -64px -104px;
}
【问题讨论】:
标签: javascript html css twitter-bootstrap popover