Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.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 如何使此代码在blogger的移动视图中工作?_Html_Loops_Blogger - Fatal编程技术网

Html 如何使此代码在blogger的移动视图中工作?

Html 如何使此代码在blogger的移动视图中工作?,html,loops,blogger,Html,Loops,Blogger,这个有条件的代码在从桌面浏览器查看时运行良好,但我希望它也能作为移动站点使用。请建议所需的任何修改 下面的步骤-1粘贴了以下代码- <b:if cond='data:blog.url != &quot;http://yourblog.blogspot.com/search/label/Label&quot;'> <style> #Gadgetid{ display: none; } </style> </b:if> #小工具ID

这个有条件的代码在从桌面浏览器查看时运行良好,但我希望它也能作为移动站点使用。请建议所需的任何修改

下面的步骤-1粘贴了以下代码-

<b:if cond='data:blog.url !=
&quot;http://yourblog.blogspot.com/search/label/Label&quot;'>
<style>
#Gadgetid{
display: none;
}
</style>
</b:if>

#小工具ID{
显示:无;
}
下面的步骤2粘贴了以下代码:

<b:if cond='data:blog.pageType != &quot;index&quot;'>
<b:if cond='data:label.name == &quot;Label&quot;'>
<style>
#gadgetid{
display: block !important;
}
</style>
</b:if>
</b:if>

#小工具ID{
显示:块!重要;
}

您应该使用@media querys从移动站点添加或删除任何内容。媒体查询允许您在任何特定设备或屏幕尺寸上完全自定义站点