【发布时间】:2011-06-12 05:03:23
【问题描述】:
是否可以在锚标记上设置宽度和高度(以像素为单位)?我希望锚标记具有背景图像,同时保留锚内的文本。
li {
width: 32px;
height: 32px;
background-color: orange;
}
li a {
width: 32px;
height: 32px;
background-color: red;
}
<li><a href="#">Something</a></li>
【问题讨论】:
标签: html css cross-browser