我正在使用以下列表:
<ol id="footnotes">
<a name="footnote1"><li></a>This is the first footnote...</li>
<a name="footnote2"><li></a>This is the second footnote...</li>
</ol>
Run Code Online (Sandbox Code Playgroud)
使用以下.css:
#footnotes {list-style-type: decimal;
list-style-color: #f90;
}
#footnotes li
{color: #000;
}
#footnotes a li,
#footnotes li a
{color: #f90;
}
Run Code Online (Sandbox Code Playgroud)
目的是让li/footer文本本身为黑色(#000),并将数字设置为orange(#f90).
我尝试过使用该list-style-color属性,但除了扰乱Web开发人员工具栏(在FF3.0.8/Ubuntu 8.04中)之外什么也没做,Midori同样不会显示橙色的数字(我以为我会在Webkit引擎中尝试它,以防万一...).
有任何想法吗?
编辑HTML(因为我记得标记不一定需要包含任何东西来起锚作用):
<ol id="footnotes">
<li><a name="footnote1"></a>This is the first footnote...</li>
<li><a name="footnote2"></a>This is the second footnote...</li>
</ol>
Run Code Online (Sandbox Code Playgroud)
回应那些建议使用<span>内部<li>...是的.发生了这种情况,虽然我感谢您的建议和所花费的时间,但我正在寻找(我是标准的,我是......;))更多...语义选项.
事实上,我想我可能会使用这种方法.虽然我接受了另一个与Pete Michaud不同的答案,因为它具有纯粹的信息性.谢谢!
我正在开发一个mvc应用程序.两个表各有一个单独的提交按钮.Table1在输入密钥上有默认提交.如何根据文本框焦点更改提交按钮?
<table>
...<td align="left"><%= Html.TextBox("name")%></td>
...<input id="nameSubmit" name="NameSubmit" type="submit" value="Search"/>
</table>
<table>
...<td align="left"><%= Html.TextBox("idNum")%></td>
...<input id="idSubmit" name="IdSubmit" type="submit" value="Search"/>
</table>
Run Code Online (Sandbox Code Playgroud)
我尝试使用面板,但"'Panel1'的DefaultButton必须是IButtonControl类型的控件的ID".
有任何想法吗?