我有一个常见问题解答页面(纯HTML)。问题有css类.pageSubtitle,答案有两个类:.p1和.p2。例子是:
<p class="pageSubtitle">Which Award should I apply for?</p>
<p class="p1">Centers that wish to be recognized for adhering to Guidelines and their Quality Programs and their Processes should apply for <span style="font-weight: bold;">The Center of Excellence in Life Support Award.</span>
These programs must meet or exceed criteria in the following categories:
</p>
<p class="p2">o Systems Focus</p>
<p class="p2">o Environmental Focus</p>
<p class="p2">o Workforce Focus</p>
<p class="p2">o Knowledge Management</p>
<p class="p2">o Quality Focus</p>
<p class="p2">o Process Optimization</p>
<p class="p2">o Family Focus</p>
在此常见问题页面上,用户希望在问题下折叠答案,当您点击问题时,答案会显示在其下方。我怎样才能做到这一点?提前感谢您的帮助。
答案 0 :(得分:0)
我终于找到了可行的解决方案:
public class Notification(){
public void printMessage(String k, String str){
//Some code
}
}
public class NotificationImpl1 extends Notification(){
ErrorHelper helper = new ErrorHelper();
helper.showMessage("test");
}
public class ErrorHelper(){
public void showMessage(String msg){
// need to call printMessage() here
}
}