为什么url标记的事件之间会有额外的空间? [英] why is there extra space between url-tagged events?

查看:94
本文介绍了为什么url标记的事件之间会有额外的空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



以下是我的日历在我的数据中没有链接时的样子



  $ ticketData [] =数组(
'id'=> $ ticket-> getId(),
'title '=> $ title,
'start'=> $ ticket-> getArrival() - >格式('Ym-d'),
'end'=> $ ticket- > getDeparture() - >格式('Ym-d'),
);

现在当我添加一个URL时:



有这个奇怪的错误发生在其他人身上?对于发生的事情我真的很失落。我添加的唯一一行是url:

  $ ticketData [] = array(
'id'=> $ ticket-> getId(),
'title'=> $ title,
'start'=> $ ticket-> getArrival() - > format('Ym-d' ),
'end'=> $ ticket-> getDeparture() - >格式('Ym-d'),
'url'=> $ url
);

以下是我如何打电话给日历:

  $('#calendar')。fullCalendar({
editable:false,
header:{
left:'prev,next today ',
center:'title',
right:'month,agendaweek,agendaDay'
},
events:data_url,
loading:function(bool){
if(bool)
$('#loading')。show();
else
$('#loading')。hide();
} );


解决方案

这绝对是一个CSS问题。我的猜测是,你有填充或边缘点击这些链接。


I have a fullcalander spacing bug that I can't get past.

Here is what my calendar looks like when my data doesn't have links in it

$ticketData[] = array(
                'id' => $ticket->getId(),
                'title' => $title,
                'start' => $ticket->getArrival()->format('Y-m-d'),
                'end' => $ticket->getDeparture()->format('Y-m-d'), 
            );

Now when I add a URL:

Has this weird bug happened to anyone else? I'm really lost as to what's going on. The only line I added was the url:

$ticketData[] = array(
                'id' => $ticket->getId(),
                'title' => $title,
                'start' => $ticket->getArrival()->format('Y-m-d'),
                'end' => $ticket->getDeparture()->format('Y-m-d'), 
                    'url' => $url
            );

Here is how I'm calling the calender:

$('#calendar').fullCalendar({
    editable: false,
    header: {
        left: 'prev,next today',
        center: 'title',
        right: 'month,agendaWeek,agendaDay'
    },
    events: data_url,
    loading: function(bool) {
        if (bool) 
            $('#loading').show();
        else
            $('#loading').hide();
});

解决方案

This is almost definitely a CSS issue. My guess is that you've got padding or margins hitting those links.

这篇关于为什么url标记的事件之间会有额外的空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆