正如您在演示中看到的那样,一旦我添加了<em>
,<button>
就会被替换。
我希望button
在footer
.
演示:http: //jsfiddle.net/chovy/5h5hc/1/
HTML
<footer>
<button class="btn-primary">Reply</button>
</footer>
<footer>
<em></em>
<button class="btn-primary">Reply</button>
</footer>
CSS
footer {
display: block;
height: 50px;
line-height: 50px;
border: 1px solid red;
padding: 0 20px;
text-align: right;
margin-top: 20px;
}
em {
display: inline-block;
height: 50px;
width: 50px;
border: 1px solid blue;
box-sizing: border-box;
}