Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 使用Animate.css设置锚定标记的动画_Html_Css_Animation - Fatal编程技术网

Html 使用Animate.css设置锚定标记的动画

Html 使用Animate.css设置锚定标记的动画,html,css,animation,Html,Css,Animation,嗨,我有下面的 <p style="text-align:center;margin-top: 50px;"><a href="#" class="pictogram" style="position:relative;" id="arrow" >&#59236;</a></p> 我正在使用Daniel Eden的animate.css。如果我将类“animated shake”添加到锚标记中,它将不起作用。但是如果我把它添加到p标签

嗨,我有下面的

<p style="text-align:center;margin-top: 50px;"><a href="#" class="pictogram" style="position:relative;" id="arrow" >&#59236;</a></p>

我正在使用Daniel Eden的animate.css。如果我将类“animated shake”添加到锚标记中,它将不起作用。但是如果我把它添加到p标签上,它就会工作


知道怎么了吗

从评论中抄写,因为它是为OP解决的

尝试添加它
display:inline块并删除
位置:相对


祝你好运

可能是因为它是一个内联元素。尝试使其
显示:内联块。还有,为什么锚定样式的位置是相对的呢?我读了另一篇文章说要添加相对位置。无论如何,显示:内联块工作完美!谢谢。很高兴听到这个消息。相对位置意味着它是其子对象的占位符,这些子对象被定位为绝对位置。对你来说没什么用。再次移除它是安全的:)