我有一个包含2个项目的简短有序列表。在第二项内,我想在右侧放置一个按钮。 CSS给我带来了麻烦,所以我在这里发布它,希望有更多的技术人员能够提供帮助。如何在列表元素中放置一个按钮?
这里的标记:
<ol>
<li>Go here to <a href="review.aspx">perform an internal review</a>.</li>
<li>When satisfied with the internal review, click the button on the right and then go to the Staging environment for a final review.<span style="width: 25%; display: block;float: right;" ><asp:Button runat="server" runat="server" ID="StageChanges" Text="Stage Changes" OnClick="StageChanges"/></span></li>
</ol>
理想我想按钮与列表元素2.文本列表元素2应适当地包裹内联。现在按钮在第二个列表元素下面。
我试了几个变化,但似乎没有任何工作,因为我想。一个变体包括指定第二个列表元素的宽度,但是这会从显示中移除数字2(或将其移到按钮的前面)。
预先感谢您!
编辑添加图片:
我刚刚试过的代码,你在这里发布的标记,并没有像你说的,你可以在这里看到它http://jsfiddle.net/bZkm5/ –
@GabrielMonteiroNepomuceno我没有看到在你的按钮链接。 – Mark
必须删除
hurrtz