使用 ASP.net 的 HTML 操作



链接工作正常,但CSS的行为方式不尽如人意。HTML 只有一个完美地工作。我认为问题与它留在按钮后面的跨度有关。

按钮的行为应如下所示:

http://www.htmldrive.net/items/demo/1832/Pure-CSS3-Animated-buttons

<li><div class="drag-item" draggable="true">
@Html.ActionLink("Sales", "Sales", "Home",  new { @class = "round" }, new { @class = "round yellow" })<span>Tender Sales - Customer Balances etc</span>

这个完美地工作

<li><div class="drag-item" draggable="true"><a href="/finance" class="round red">Finance<span class="round">Tender Sales - Customer Balances etc</span></a></li>

嗨,伙计很抱歉我浪费了任何时间,谢谢。我已经找到了解决方案。在这里发布给那些可能需要它的人。

<a href="@Url.Action("View", "Controller")" class="Css Classname">

**<li><div class="drag-item" draggable="true"><a 
href="@Url.Action("Welcome", "Helloworld")" class="round 
yellow">Sales<span class="round" aria-hidden="true">Tender Sales - 
Customer Balances etc</span></a></li>**

最新更新