小编Chr*_*rez的帖子

为什么在CSS中,#1(作为div元素的id)样式不起作用?

<div class="image" id="1"></div>
<div class="image" id="2"></div>
<div class="image" id="3"></div>
Run Code Online (Sandbox Code Playgroud)

http://codepen.io/Chrez/pen/KdWrBe

正如您在codepen中看到的那样,"id ='1'"的样式不起作用.

我需要这种方式,因为它是滑块,我的jQuery函数以这种方式工作.

html css

3
推荐指数
1
解决办法
589
查看次数

List <T> .Add不添加到列表中

好吧问题是我对列表的计数没有上升所以它没有将对象添加到列表中.

List<Employee> employees = new List<Employee>();

private void addEmployee_Click(object sender, EventArgs e)
{
    List<Employee> employees = new List<Employee>();

    employees.Add(new Employee()
    {
        egn = egnInput.Text,
        names = namesInput.Text,
        proffesion = professionList.Text,
        office = officeList.Text,
        salary = Double.Parse(salaryInput.Text),
        joinDate = DateTime.Parse(joinDatePicker.Text)
    });

    MessageBox.Show("????????? ?? ??????? ???????!");

    egnInput.Clear();
    namesInput.Clear();
    professionList.Text = "";
    officeList.Text = "";
    salaryInput.Clear();
    joinDatePicker.Text = "";

}
Run Code Online (Sandbox Code Playgroud)

提前致谢!

c# winforms

0
推荐指数
1
解决办法
107
查看次数

标签 统计

c# ×1

css ×1

html ×1

winforms ×1