我正在使用自定义代码来打印评论,但问题是无论我做什么,我都无法在任何评论下打印评论回复链接....
这是代码
<?php // Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
}
/* This variable is for alternating comment background */
/*$oddcomment = 'class="alt" ';*/
$oddcomment = 'alt';
?> …Run Code Online (Sandbox Code Playgroud) 我正在学习jQuery和它的新功能.我试图运行一些代码,但它没有运行,然后我发现我只需要在结束双逗号/引号之前给出一个空格"
$("div:not([id=header]) " + strWhichTag).each(function(){
//some function
});
Run Code Online (Sandbox Code Playgroud)
现在问题是为什么我们需要在id = header之后给出空格])如果我删除那个空格并使用这个代码,它不起作用,下面的代码不起作用但是为什么
$("div:not([id=header])" + strWhichTag).each(function(){
//some function
});
Run Code Online (Sandbox Code Playgroud)
CHANGES ------------------------ strWhichTag基本上是h3,但它不是#header的孩子
我需要知道的第二件事就是这个
var oList = $("<ul id='bookmarksList'>");
Run Code Online (Sandbox Code Playgroud)
在这里,我可以选择使用单引号和双引号,或者我需要保持相同的级别,如使用双引号并在其中使用sigle引号
我正在学习它,所以任何帮助都会得到满足
我想要的是,我想要从IE6和IE7隐藏这部分HTML代码,但不是firefox,opera或IE8,但条件评论在这部分不能正常工作....我在头部使用单独的CSS条件评论但是歌剧的条件评论不起作用,有时Firefox也会出现奇怪的行为
<!--[if gte IE 8]>
<[if Gecko]>
<div class="anythingSlider">
<div class="wrapper">
<ul>
<li>
<img src="gallery/1.jpg" alt="" />
</li>
<li>
<img src="gallery/2.jpg" alt="" />
</li>
</ul>
</div>
</div>
<[endif]>
<[endif]––>
Run Code Online (Sandbox Code Playgroud)