- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
问题:将Tooltipster.JS与FullCalendar和/或动态呈现的内容一起使用
我已经挠了一下头,为这个问题咀嚼了很长时间,而且我离开始的时候还很近。我已经阅读并重新阅读了Tooltipster文档,但我似乎根本无法使用'data-tooltip-content'
作为指向#idTooltipsterElement
的指针。即使文档明确指出,它也仅显示“ data-tooltip-content”的值:
工具提示文档说明:
5.在工具提示中使用HTML
工具提示允许您在工具提示中使用任何HTML标记。它
表示您可以插入图片和文本格式标签之类的内容。
代替标题属性,使用data-tooltip-content属性来
提供与您页面的HTML元素相对应的选择器
应该用作内容。这是您的HTML:
<span class="tooltip" data-tooltip-content="#tooltip_content">This span has a tooltip with HTML when you hover over it!</span>
<div class="tooltip_templates">
<span id="tooltip_content">
<img src="myimage.png" /> <strong>This is the content of my tooltip!</strong>
</span>
</div>
.tooltip_templates { display: none; }
,以便
'data-tooltip-content'
将整个HTML元素放入其中,很奇怪的是,我注意到这也适用于Tooltipster,即使他们的文档似乎更喜欢上述方法。现在,通常我只是保留我已经熟悉的旧方法,但是不幸的是,这带来了与FullCalendar中事件后渲染更改(我们很可能实现)相关的一系列潜在挑战,我们在我们的广泛使用页面,以及我已经遇到的格式/样式困难。
#tt_event1
(它指向的元素的ID),而不是内容部分中设置的
<div class="tooltip_templates"><span id="tt_event1" class="tooltip_content"><img src="https://hackernoon.com/hn-images/1*cmqZiJz1TuUedRoeI3g_Iw.jpeg" width="450" height="auto"><p style="text-align:left;"><span class="flag-icon flag-icon-uk"></span><strong class="title">Tips for Writing Cleaner Code</strong><br>optional desctiptive text can go here</p></span></div>
$(document).ready(function() {
$('#calendar').fullCalendar({
defaultView: 'month',
header: '',
defaultDate: '2020-03-01',
events: [{
id: 'event1',
className: 'UK',
title: 'Tips for Writing Cleaner Code',
description: 'I decided to write an article that will be useful for beginners to understand their mistakes and to put together some practices. /n source: hackernoon.com/tips-for-writing-cleaner-better-code-e36ffeb55526',
start: '2020-03-02', end: '2020-03-02'
}, {
id: 'event2',
className: 'NL',
title: 'Modern Style of Javascript with Arrow Functions',
description: 'The complete explanation of Arrow functions in Javascript, and how it helps developers to write flexible and consistent code. /n source: hackernoon.com/modern-style-of-javascript-with-arrow-functions-lg1x3474',
start: '2020-03-04', end: '2020-03-11'
}
],
eventRender: function(event, element, view) {
window.dataE = window.dataE || [];
element.attr( 'id', event.id );
var /* Vars */
desc = (event.description), url='',
urlEvent1 = "https://hackernoon.com/hn-images/1*cmqZiJz1TuUedRoeI3g_Iw.jpeg",
urlEvent2 = "https://images.unsplash.com/photo-1527427337751-fdca2f128ce5?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEwMDk2Mn0",
tipRef="tip_content_"+event.id, idTip="#"+tipRef
/* End Vars */;
// passing 2 extra image params manually - usually from seperate data routine
if (event.title == 'Tips for Writing Cleaner Code') { url = urlEvent1; } else { url = urlEvent2; }
var tt_ref = '#tt_'+event.id;
var className = ''+event.className;
var cc = className.toLowerCase();
var tt = '<div class="tooltip_templates"><span id="tt_' + event.id + '" class="tooltip_content"><img src="' + url + '" width="450" height="auto"><p style="text-align:left;"><span class="flag-icon flag-icon-' + cc + '"></span><strong class="title">' + event.title + '</strong><br>optional desctiptive text can go here</p></span></div>';
element.attr( 'data-tooltip-content', tt_ref ); // the tooltip pointer
element.attr( 'data-tt-tooltipser' ); element.attr( 'data-tt-tooltipser', tt );
element.attr( 'tt_title' ); element.attr( 'tt_title', event.title );
element.addClass('tt_tooltip tt_group');
var eID = '#'+event.id;
// Tooltipster
if (!element.hasClass('tt_added')) {
$(eID).tooltipster();
$(eID).tooltipster({
//content: tipContent,
//contentCloning: true,
trigger: 'hover',
//multiple: true,
animation: 'fade',
arrow: true,
delay: 300,
maxWidth: 600,
contentAsHTML: true,
debug: true
});
element.addClass('tt_added');
}
// create array of event.IDs for use in [eventAfterAllRender]
if (Array.isArray(dataE)){
var json = JSON.stringify(event.id),
item = dataE.find(el => JSON.stringify(el) === json);
if (typeof item !== 'undefined'){
return false;
} else {
dataE.push(event.id);
}
}
},
eventAfterAllRender: function(event, element){
// get events from dataE array created during [eventRender]
var count = 0;
for (var i=0; i<dataE.length; i++) {
var id = dataE[i], eID = '#'+id ;
// now obtain the tooltip & tooltipster variables for each event
var tipTooltipRef = $(eID).attr('data-tooltip-content');
var tipTooltipsterContent = $(eID).attr('data-tt-tooltipser');
console.log("tipTooltipRef:", tipTooltipRef);
console.log("tipTooltipsterContent:", tipTooltipsterContent);
console.log("$(eID)", $(eID));
// append the tooltipster content aquired via tooltipster var
$(eID).append(tipTooltipsterContent);
$(eID).tooltipster();
// set the content pointer
$(eID).tooltipster('content', tipTooltipRef );
//TOOLTIPSTER: update any necessary Tooltip content
$('.fc-event').mouseenter(function() {
if (tipTooltipRef == '' || tipTooltipRef == 'undefined'){
$(eID).tooltipster('content', 'Invalid image link 😔');
// OR simply: $(this).tooltipster('disable');
} else {
var t = $(eID).attr('tt_title'), tt_Title = '<div class="ttTitle">'+t+'</div>' ;
var tt_element = $(eID).find('.tooltipster-content');
tt_element.append(tt_Title);
$(eID).tooltipster('option','contentAsHTML','true');
$(eID).tooltipster('content', tipTooltipRef);
if (!$(eID).hasClass('tt_added')) {
$(eID).tooltipster();
$(eID).tooltipster({
content: tipTooltipRef,
//contentCloning: true,
trigger: 'hover',
//multiple: true,
animation: 'fade',
arrow: true,
delay: 300,
maxWidth: 600,
contentAsHTML: true,
//debug: true
});
// bind on start events (triggered on mouseenter)
$(eID).on('start', function(event) {
if ($(event.instance.elementOrigin()).hasClass('tt_group')){
var instances = $.tooltipster.instances('.tt_group'),
open = false,
duration;
$.each(instances, function (i, instance) {
if (instance !== event.instance) {
// if another instance is already open
if (instance.status().open){
open = true;
// get the current animationDuration
duration = instance.option('animationDuration');
// close the tooltip without animation
instance.option('animationDuration', 0);
instance.close();
// restore the animationDuration to its normal value
instance.option('animationDuration', duration);
}
}
});
// if another instance was open
if (open) {
duration = event.instance.option('animationDuration');
// open the tooltip without animation
event.instance.option('animationDuration', 0);
event.instance.open();
// restore the animationDuration to its normal value
event.instance.option('animationDuration', duration);
// now that we have opened the tooltip,
//the hover trigger must be stopped
event.stop();
}
}
});
$(eID).addClass('tt_added');
}
}
});
}
},
eventMouseover: function(view, event, element){
//TOOLTIPSTER: update any necessary Tooltip content
var tipContent = $(this).attr('data-ttipster');
var id = event.id //$(this).attr('id');
var eID = '#'+id;
var tipID = '#tt_'+id;
if (tipContent == '' || tipContent == 'undefined'){
$(eID).tooltipster('content', 'Invalid image 🔗 detected: unable to display at present 😔');
$(eID).tooltipster('disable');
// or $(this).tooltipster('destroy');
} else {
// TOOLTIPSTER: Not really req now as tipContent is set @ evenRender
//$(eID).tooltipster('option','contentAsHTML','true');
$(eID).tooltipster('option','multiple','true');
$(eID).tooltipster({
functionInit: function(instance, helper){
var content = $(helper.origin).find(tipID).detach();
instance.content(content);
}
});
if (!$(this).hasClass('tt_added')) {
$(eID).tooltipster();
$(eID).tooltipster({
content: tipContent,
//contentCloning: true,
trigger: 'hover',
//multiple: true,
animation: 'fade',
arrow: true,
delay: 300, //[300, 100]
maxWidth: 600,
contentAsHTML: true,
debug: true
});
// bind on start events (triggered on mouseenter)
$(this).on('start', function(event) {
if ($(event.instance.elementOrigin()).hasClass('tt_group')) {
var instances = $.tooltipster.instances('.tt_group'),
open = false,
duration;
$.each(instances, function (i, instance) {
if (instance !== event.instance) {
// if another instance is already open
if (instance.status().open){
open = true;
// get the current animationDuration
duration = instance.option('animationDuration');
// close the tooltip without animation
instance.option('animationDuration', 0);
instance.close();
// restore the animationDuration to its normal value
instance.option('animationDuration', duration);
}
}
});
// if another instance was open
if (open) {
duration = event.instance.option('animationDuration');
// open the tooltip without animation
event.instance.option('animationDuration', 0);
event.instance.open();
// restore the animationDuration to its normal value
event.instance.option('animationDuration', duration);
// now that we have opened the tooltip,
//the hover trigger must be stopped
event.stop();
}
}
});
$(this).addClass('tt_added');
}
}
},
eventClick: function(event, element, view) {
var e = (event.description);
if (e != null){
var chr = e.length;
// event click coded goes here
alert(e);
}
}
});
});
/* tooltipster.js */
.tooltip_templates {
display: none;
}
.tooltipster-content{
/*display: flex;
flex-direction: column;*/
}
.ttTitle {
}
/*! suit-flex-embed v1.4.0 | MIT License | github.com/suitcss */
.FlexEmbed {
display: block;
overflow: hidden;
position: relative;
}
.FlexEmbed:before {
content: "";
display: block;
width: 100%;
}
.FlexEmbed--16by9:before {
padding-bottom: 56.25%;
}
.FlexEmbed--4by3:before {
padding-bottom: 75%;
}
.FlexEmbed--1by1:before {
padding-bottom: 100%;
}
.CoverImage {
background-position: 50%;
background-repeat: no-repeat;
background-size: cover;
margin: 0 auto 1em;
max-height: 600px;
max-width: 600px;
}
.CoverImageX2 {
background-color: #808080;
background-position: 50%;
background-repeat: no-repeat;
background-size: 100% 100%; /*cover; contain;*/
margin: 0 auto 1em;
max-height: 2400px;
max-width: 1200px;
}
<!-- Bootstrap -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.0/css/bootstrap.min.css" integrity="sha384-SI27wrMjH3ZZ89r4o+fGIJtnzkAnFs3E4qz9DIYioCQ5l9Rd/7UAa8DHcaL8jkWt" crossorigin="anonymous" />
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.0/js/bootstrap.min.js" integrity="sha384-3qaqj0lc6sV/qpzrc1N5DC6i1VRn/HyX4qdPaiEFbn54VjQBEU341pvjz7Dv3n6P" crossorigin="anonymous"></script>
<!-- FulCalendar -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.10.1/fullcalendar.min.css" integrity="sha256-tXJP+v7nTXzBaEuLtVup1zxWFRV2jyVemY+Ir6/CTQU=" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js" integrity="sha256-4iQZ6BVL4qNKlQ27TExEhBN1HFPvAvAMbFavKKosSWQ=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.10.1/fullcalendar.min.js" integrity="sha256-O04jvi1wzlLxXK6xi8spqNTjX8XuHsEOfaBRbbfUbJI=" crossorigin="anonymous"></script>
<!-- Tooltipster -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tooltipster@4.2.7/dist/css/tooltipster.main.min.css" integrity="sha256-xlmCQ8IjIIx7gqrIAb5x5kEU30jJJm0/DEmrjgLow/E=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tooltipster@4.2.7/dist/css/tooltipster.bundle.min.css" integrity="sha256-Qc4lCfqZWYaHF5hgEOFrYzSIX9Rrxk0NPHRac+08QeQ=" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/tooltipster@4.2.7/dist/js/tooltipster.main.min.js" integrity="sha256-9gPC19rdxygnD5cXHFodzczLKeucNZ/dgzLhkKvNtQM=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/tooltipster@4.2.7/dist/js/tooltipster.bundle.min.js" integrity="sha256-NOU7KrY2aTI4PxDegqYUIknk9qfxVCS0E4JfE9aMwaA=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/tooltipster@4.2.7/dist/js/plugins/tooltipster/SVG/tooltipster-SVG.min.js" integrity="sha256-b9JNfGq08bjI5FVdN3ZhjWBSRsOyF6ucACQwlvgVEU4=" crossorigin="anonymous"></script>
<div id='calendar'></div>
data-tooltip-content
中的指针使用HTML工具提示)之外,还可以随意提及。
最佳答案
经过一段时间的考虑和尝试各种事物,并参考了Tootltipster和FullCalendar Docs以及大量的Github问题等,我弄清楚了我的问题。
关键步骤:
所有工具提示都需要在FullCalendar [eventRender]流程中创建,我们不会通过[eventMouseover]触发任何操作。同样,除了将Tooltipster工具提示绑定到event.id
之外,您还需要将其与tooltipster类或在我的情况下与.tt_tooltip
类相关联,因为“ tooltip”名称与Bootstrap冲突。
另一个需要注意的重要事情是,似乎仅在[eventRender]期间我们正在初始化每个Tooltipster工具提示以及设置选项,FullCalendar文档指出:
eventRender
Triggered while an event is being rendered. A hook for modifying its DOM.
function( event, element, view ) { }
event is the Event Object that is attempting to be rendered.
element is a newly created jQuery element that will be used for rendering.
$('.tt_tooltip').tooltipster();
$('.tt_tooltip').tooltipster();
]末尾调用
eventAfterAllRender:
而不是doc.ready!
$(document).ready(function() {
$('#calendar').fullCalendar({
defaultView: 'month',
header: '',
defaultDate: '2020-03-01',
events: [{
id: 'event1',
className: 'GB',
title: 'Tips for Writing Cleaner Code',
description: 'I decided to write an article that will be useful for beginners to understand their mistakes and to put together some practices. /n source: hackernoon.com/tips-for-writing-cleaner-better-code-e36ffeb55526',
start: '2020-03-02', end: '2020-03-02'
}, {
id: 'event2',
className: 'NL',
title: 'Modern Style of Javascript with Arrow Functions',
description: 'The complete explanation of Arrow functions in Javascript, and how it helps developers to write flexible and consistent code. /n source: hackernoon.com/modern-style-of-javascript-with-arrow-functions-lg1x3474',
start: '2020-03-04', end: '2020-03-11'
}
],
eventRender: function(event, element, view) {
window.dataE = window.dataE || [];
element.attr( 'id', event.id );
var eExist = false;
// create array of event.IDs for use in [eventAfterAllRender]
if (Array.isArray(dataE)){
var json = JSON.stringify(event.id),
item = dataE.find(el => JSON.stringify(el) === json);
if (typeof item !== 'undefined'){
return false;
} else {
dataE.push(event.id);
eExist = true;
}
}
var /* Vars */
desc = (event.description), url='',
urlEvent1 = "https://hackernoon.com/hn-images/1*cmqZiJz1TuUedRoeI3g_Iw.jpeg",
urlEvent2 = "https://images.unsplash.com/photo-1527427337751-fdca2f128ce5?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEwMDk2Mn0",
tipRef="tip_content_"+event.id, idTip="#"+tipRef
/* End Vars */;
// passing 2 extra image params manually - usually from seperate data routine
if (event.title == 'Tips for Writing Cleaner Code') { url = urlEvent1; } else { url = urlEvent2; }
var tt_ref = '#tt_'+event.id;
//var tt_ref = 'tt_'+event.id;
var className = ''+event.className;
var cc = className.toLowerCase();
var tt = '<div class="tooltip_templates"><span id="tt_' + event.id + '" class="tooltip_content"><img src="' + url + '" width="350" height="auto"><p style="text-align:left;"><span class="flag-icon flag-icon-' + cc + '"></span> <span class="tt_title"><strong>' + event.title + '</strong></span><br><span class="tt_desc">optional desctiptive text can go here</span></p></span></div>';
element.attr( 'data-tooltip-content', tt_ref ); // the tooltip ref selector (pointer)
element.attr( 'data-tt-tooltipster' ); element.attr( 'data-tt-tooltipster', tt ); // tootipster content stored for [AfterEventRender]
element.attr( 'tt_title' ); element.attr( 'tt_title', event.title );
element.addClass('tt_tooltip'); // add the tooltipster class (using 'tt_tooltip' due to Bootstrap 'tooltip' conflict )
element.append(tt); // append tooltipster content to each fullCalendar element
// Tooltipster - as per Tooltipster Doc use 'tooltip' class (in our case 'tt_tooltip' due to Bootstrap conflict)
$('.tt_tooltip').tooltipster();
$('.tt_tooltip').tooltipster({
content: tt_ref,
contentCloning: true,
trigger: 'hover',
multiple: true,
animation: 'fade',
arrow: true,
delay: 300,
maxWidth: 600,
contentAsHTML: true,
debug: true
});
},
eventAfterAllRender: function(event, element){
// get events from dataE array created during [eventRender]
var count = 0;
for (var i=0; i<dataE.length; i++) {
var id = dataE[i], eID = '#'+id ;
// obtain the tooltip is selector & tooltipster data each event
var tipTooltipRef = $('.fc-body').find(eID).closest('.tt_tooltip').attr('data-tooltip-content');
var tipTooltipsterContent = $('.fc-body').find(eID).closest('.tt_tooltip').attr('data-tt-tooltipster');
console.log("tipTooltipRef:", tipTooltipRef);
console.log("tipTooltipsterContent:", tipTooltipsterContent);
// update / disable Tooltipster content if necessary
if (tipTooltipRef == '' || tipTooltipRef == 'undefined'){
$('.fc-body').find(eID).closest('.tt_tooltip').tooltipster('content', 'Invalid image link 😔');
}
}
},
eventMouseover: function(view, event, element){
//Not requried for Tooltipster Tooltips - handled by Tooltipster option (trigger: 'hover')
},
eventClick: function(event, element, view) {
var e = (event.description);
if (e != null){
var chr = e.length;
// event click coded goes here
alert(e);
}
}
//end: fullCalendar
});
// Even though tooltips are created during [eventRender] the generic class gets initiated here.
$('.tt_tooltip').tooltipster(); //{contentCloning: true}
//end: doc.ready
});
/* tooltipster.js */
.tooltip_templates {
display: none;
}
.tooltipster-content{
/*display: flex;
flex-direction: column;*/
}
.ttTitle {
}
/*! suit-flex-embed v1.4.0 | MIT License | github.com/suitcss */
.FlexEmbed {
display: block;
overflow: hidden;
position: relative;
}
.FlexEmbed:before {
content: "";
display: block;
width: 100%;
}
.FlexEmbed--16by9:before {
padding-bottom: 56.25%;
}
.FlexEmbed--4by3:before {
padding-bottom: 75%;
}
.FlexEmbed--1by1:before {
padding-bottom: 100%;
}
.CoverImage {
background-position: 50%;
background-repeat: no-repeat;
background-size: cover;
margin: 0 auto 1em;
max-height: 600px;
max-width: 600px;
}
.CoverImageX2 {
background-color: #808080;
background-position: 50%;
background-repeat: no-repeat;
background-size: 100% 100%; /*cover; contain;*/
margin: 0 auto 1em;
max-height: 2400px;
max-width: 1200px;
}
<!-- Bootstrap -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.0/css/bootstrap.min.css" integrity="sha384-SI27wrMjH3ZZ89r4o+fGIJtnzkAnFs3E4qz9DIYioCQ5l9Rd/7UAa8DHcaL8jkWt" crossorigin="anonymous" />
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.0/js/bootstrap.min.js" integrity="sha384-3qaqj0lc6sV/qpzrc1N5DC6i1VRn/HyX4qdPaiEFbn54VjQBEU341pvjz7Dv3n6P" crossorigin="anonymous"></script>
<!-- FulCalendar -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.10.1/fullcalendar.min.css" integrity="sha256-tXJP+v7nTXzBaEuLtVup1zxWFRV2jyVemY+Ir6/CTQU=" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js" integrity="sha256-4iQZ6BVL4qNKlQ27TExEhBN1HFPvAvAMbFavKKosSWQ=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.10.1/fullcalendar.min.js" integrity="sha256-O04jvi1wzlLxXK6xi8spqNTjX8XuHsEOfaBRbbfUbJI=" crossorigin="anonymous"></script>
<!-- Tooltipster -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tooltipster@4.2.7/dist/css/tooltipster.main.min.css" integrity="sha256-xlmCQ8IjIIx7gqrIAb5x5kEU30jJJm0/DEmrjgLow/E=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tooltipster@4.2.7/dist/css/tooltipster.bundle.min.css" integrity="sha256-Qc4lCfqZWYaHF5hgEOFrYzSIX9Rrxk0NPHRac+08QeQ=" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/tooltipster@4.2.7/dist/js/tooltipster.main.min.js" integrity="sha256-9gPC19rdxygnD5cXHFodzczLKeucNZ/dgzLhkKvNtQM=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/tooltipster@4.2.7/dist/js/tooltipster.bundle.min.js" integrity="sha256-NOU7KrY2aTI4PxDegqYUIknk9qfxVCS0E4JfE9aMwaA=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/tooltipster@4.2.7/dist/js/plugins/tooltipster/SVG/tooltipster-SVG.min.js" integrity="sha256-b9JNfGq08bjI5FVdN3ZhjWBSRsOyF6ucACQwlvgVEU4=" crossorigin="anonymous"></script>
<div id='calendar'></div>
关于javascript - 工具提示:[data-tooltip-content]作为动态HTML的指针,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60646144/
什么是 SASS 方法要求干燥这样的东西: .content p, .content ul, .content li, .content a 最佳答案 这 4 个元素都有共同的样式吗? .conten
我正在评估 Contentful.com 作为 Angular SPA 的内容引擎。 我面临的问题是按内容类型检索条目(例如,获取“博客”类型的所有条目)。如 documentation exampl
在我编辑的主 wiki 上有一个名为 Item: 的自定义命名空间,提示是该命名空间内的每个页面都显示为 Item:This_item - - Item:That_item -- Item:Foo_i
我正在尝试编写一个Python脚本,可以将图片和pdf上传到WordPress。我希望图像上传到文件夹‘/wp-Content/Uploads/’,将pdf文件上传到文件夹‘/wp-Content/U
是否可以监控进行了多少次 Contentful API 调用,并理想地在即将超过配额时收到通知? 谢谢 最佳答案 当然,您可以在右侧用户配置文件的下拉菜单 > Organizations and Bi
我在尝试在 IE8 中下载带有分号的文件名时遇到问题。 Response.AddHeader("Content-Disposition", "attachment; filename=\"" + at
我在 Contentful Delivery API 中运行查询以返回基于它的 slug 的特定页面项目。这个查询还设置了语言环境,以便它只返回我需要呈现的语言的数据。 但是,我还需要设置页面的 hr
我有兴趣使用 Gatsby建一个Netlify使用来自 Contentful 的内容的静态网站 Netlify 有这个不错的 Gatsby 入门指南: https://www.netlify.com/
目标是提交一个 git 分支。分支的“git status”的输出是: On branch zeromq_new Your branch is up to date with 'origin/zero
我目前正在学习在 ASP.NET 3.5 和 C# 中使用 MasterPages 和 ContentPlaceHolders - 现在,我正在拼命尝试通过我的编程代码编辑 asp:Content-C
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 1
我使用 bootstrap 3 作为我的网格框架和 CSS 来创建一个具有一个倾斜/倾斜边缘的半透明区域,但由于分层不透明度,我的元素遇到了问题。 期望是中心是倾斜的,但右侧仍然是正方形。 有没有更好
IllegalArgumentException: 未知 URL 内容:// ^ 对上述内容做了噩梦。我检查了我的变量和路径,但看不出问题是什么?非常感谢任何指点! 这是我的痕迹。 java.lan
我有两个元素:一个是 元素,另一个是 元素。 populated-drop-down extends drop-down ,但是,正如您可能已经猜到的那样,它会尝试使用一些选项预先填充它。假设我可以简
我想我也有同样的问题。 Using multiple yields to insert content 我尝试了这个解决方案。我试过 在我的 application.html.erb 中有 conte
此链接 ( https://css-tricks.com/snippets/css/a-guide-to-flexbox/ ) 表示 justify-content 和 align-content 的
我现在正在探索绑定(bind),并且有一个 NSPopUpButton - 它为我提供了一些值选择下的绑定(bind)选项 - Content , Content Objects , Content
正在尝试在内容页面中加载内容 View 。当我运行代码时,它不会出现在我的内容 View 中。我正在从我的内容页面分配两个可绑定(bind)参数。 内容页面: 内容 View :
我想从我的 :before 标签中获取 content。我知道有些人会说它不是真正的(伪)元素,但在 JS 中有一种方法,但有人可以帮助我在 JQ 中做到这一点,因为我有多个标签并且我想用 $.eac
我创建了一个.sh脚本,并将结果记录在一个文件中,执行后我会尝试将文件内容作为mail正文发送。 这是我运行的命令: sh update.sh >> update.$(date +"%Y-%m-%d:
我是一名优秀的程序员,十分优秀!