这是我的代码jquery代码...第一次点击不工作,进一步点击工作,也在iphone safari没有发生任何事情.我们是否需要添加特定于safari浏览器的任何内容.任何帮助将不胜感激.
CSS
p.expand-one {
cursor: pointer;
}
p.content-one {
display:none;
}
p.expand-2 {
cursor: pointer;
}
p.content-2 {
display:none;
}
Run Code Online (Sandbox Code Playgroud)
HTML
<div class="sitesection">
<p class="expand-one" onclick="dostuff('.expand-one','.content-one');" > + Click Here To Display The Content </p>
<p class="content-one"> This is the content that was hidden before, but now is... Well, visible!"</p>
<p class="content-one"> This is the content that was hidden before, but now is... "</p>
<p class="expand-2" onclick="dostuff('.expand-2','.content-2');"> + Click Here To Display The Content </p>
<p class="content-2"> This is the content that …Run Code Online (Sandbox Code Playgroud)