您好我有一个聊天示例
https://bootsnipp.com/snippets/vrzGb
我希望滚动到底部:
.chat_area
但我需要课程 $('.chat_area').scroll(0,document.body.scrollHeight);
。我怎么能这样做?
static void Main(string[] args)
{
Student student = new Student()
{
ID = 12,
Name = "Manu",
LastName = "Shekar"
};
Iregister x = student;
Student newstudent = x as Student;
//Console.WriteLine(x.LastName); //Uncommenting this shows compilation error
Console.WriteLine(newstudent.LastName); //This Show "Shekar"
Console.ReadKey();
}
class Student : Iregister
{
public int ID { get; set; }
public string Name { get; set; }
public String LastName { get; set; }
}
interface Iregister
{
int ID { get; set; }
String Name { get; set; }
}
答案 0 :(得分:0)
试试这个jquery:
$(".chat_area").animate({ scrollTop: $(document).height() }, "slow");
return false;