<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#action-icons
{
float:right;
}
#action-icons.img
{
position:relative;
top:-30px;
padding-right:200px;
}
</style>
</head>
<body>
<h1 class="edit">Some nifty title
<span id="action-icons">
<img src="foo.png" width="64" height="64" alt="" id="newsticky"/>
<img src="bar.png" width="60" height="60" alt="" id="trash"/>
</span>
</h1>
</body>
</html>
Q
填充不垫
1
A
回答
2
尝试增加:
#action-icons.img
{
position:relative;
top:-30px;
padding-right:200px;
}
可以办得到。
编辑:你有#action-icons.img
删除点,所以它的#action-icons img
。
的点设置img
为一个类,使你拥有了它,产生的HTML代码如下所示:
希望它能帮助。
编辑 - 以下是完整的工作代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#action-icons
{
float:right;
}
#action-icons img
{
position:relative;
top:-30px;
margin-left:50px;
}
</style>
</head>
<body>
<h1 class="edit">Some nifty title
<span id="action-icons">
<img src="foo.png" width="64" height="64" alt="" id="newsticky"/>
<img src="bar.png" width="60" height="60" alt="" id="trash"/>
</span>
</h1>
</body>
</html>
2
2
变化
#action-icons.img
要
#action-icons img
并检查
它适用于我在火狐上
相关问题
- 1. 表填充不能填充行按钮
- 2. 猫鼬填充不填充数组
- 3. 不填充母
- 4. ListView不填充
- 5. PropType不填充
- 6. DataGridView不填充
- 7. UICollectionViewCells不填充
- 8. MVC3 - DropDownListFor不填充
- 9. Datagridcombo框不填充
- 10. 互动不填充
- 11. 填充不显示?
- 12. 不要填充auth_permission
- 13. .outerHeight不占填充
- 14. c#listbox不填充
- 15. 的WebView不填充
- 16. 填充不工作
- 17. 填充重写后填充
- 18. CoreJS到垫片或不垫片
- 19. 边界填充和填充填充之间的区别
- 20. 可变长度填充和填充填充梯度
- 21. 填充不起作用
- 22. 阵列不正确填充
- 23. Java JTable不填充DefaultTableModel
- 24. rem填充不工作
- 25. TransitionDrawable不考虑填充?
- 26. 查询不填充空colomns
- 27. 填充不起作用TCPDF
- 28. Wpf Listview不填充sqlite
- 29. foreach不填充数组
- 30. Vector_push不填充矢量(C++)
它不起作用。 – ripper234 2010-04-30 07:53:20
谢谢,现在它:) – ripper234 2010-04-30 07:58:12
嘿,事实证明,内联并不需要,问题只是我的选择。 – ripper234 2010-04-30 08:01:27