【发布时间】:2018-02-27 01:01:06
【问题描述】:
我不得不问一个简单的 CSS 问题,因为我的 CSS 不太好。我已经完成了一个弹出模式功能,因此当用户将鼠标悬停在链接上时,模式会显示为
但是您可以看到标题显示非常大,我怎样才能使字体变小?我似乎无法为此找到 CSS。我的代码如下:
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('[data-toggle="popover"]').popover({
placement : 'top',
trigger : 'hover'
});
});
</script>
<a href="{{action('AltHr\Chatbot\ChatbotController@queries', [$companyID, $entityType, $entityValue])}}" class="btn btn-link" data-toggle="popover" title="{{ucwords($entityValue)}}" data-content="Default popover">{{ucwords($entityValue)}}</a>
<style type="text/css">
/* Popover Header */
.popover-title {
font-size: 12px;
}
/* Popover Body */
.popover-content {
font-size: 12px;
}
</style>
它正在使用引导程序。
【问题讨论】:
-
你使用的是什么版本的引导程序?
-
尝试设置popover的最大宽度
-
@davecar21 3.x?
-
但我想设置字体大小@Sharvan
标签: javascript jquery html css