我创建了一个表,希望第一个单元格从右边开始而不是从左边开始默认.我尝试在CSS中更改float属性,但似乎没有帮助.这是代码:
<table border="0" width="100%" cellspacing="0" align="center" class="result_table">
<tr align="right">
<th bgcolor="#cccccc" align="right">1</th>
<th bgcolor="#cccccc" size="17">2</th>
<th bgcolor="#cccccc">3</th>
<th bgcolor="#cccccc">4</th>
</tr>
</table>
<style>
table.result_table {
float:right;
}
</style>
Run Code Online (Sandbox Code Playgroud)
任何人都可以建议一种方法来改变这个表的浮动吗?
我有一个使用令牌验证的有效Web API,但我想检索发送该令牌的用户。
Request.GetOwinContext().Authentication.User.Identity.Name; // returns null
Run Code Online (Sandbox Code Playgroud)
我该如何实现?