我不明白为什么我的链接不是.pushMenu div(左和右),
HTML:
<header class="header">
<div class="pushMenu" id="left">
<a href="" title=""><p>l</p></a>
</div>
<div class="pushMenu" id="right">
<a href="" title=""><p>r</p></a>
</div>
<div>
<span class="myTitle">title</span>
<span class="myBy">(by me)</span>
</div>
的CSS:
header {
text-align: center !important;
line-height: 60px;
font-weight: bold;
position: absolute;
top: 0; left: 0; right: 0;
height: 60px;
color: #ffffff;
}
header div.pushMenu {
position: absolute;
width: 30px;
height: 30px;
top: 10px;
border: 1px solid white;
}
header div.pushMenu#left {left: 10px;}
header div.pushMenu#right {right: 10px;}
header div.pushMenu a {
width: 30px;
height: 30px;
display: block;
}
查看实际操作:http://jsfiddle.net/GDQdU/4/
出了什么问题?