我的下面有一个ul
,它有锚标记。
<ul class="nav-link-bottom">
<li><a class="active" href="login.html">Existing user</a></li>
<li><a href="signup.html" style = "background-color:#000">new user</a></li>
</ul>
我想在第二个锚标签上放置一个图像。不知道我怎么能这样做。
答案 0 :(得分:6)
不是真的了解你的问题,但是如果你希望Step 1
Department dept=(Department)session.get(Department.class, 100); // Department A
Step 2
List<Employee> employees = dept.getEmployees();// it contains employee 1 also
Now get employee for id1 from above list and modify the address to address 2
Step 3
Employee emp_step_3=(Employee)session.get(Employee.class, 1);
//updates employee address address 3 with session.saveOrUpdate(emp_step_3);
Step 4
session.saveOrUpdate(dept);
作为img
,你可以做到
link
然后提供<a href="page.html"><img src="img.png"></a>
anchor tag
或height
答案 1 :(得分:2)
<li><a href=""><img src="" alt=""></a></li>