需要在下面的button中实现跳转,之前直接写了个<a>标签,但是在手机上的效果太差了,这是老大写的js跳转。记下来,要学会贯通。

    <div class="ps-lt">
        <div class="lt-dsb">
            <p>
                <span style="padding: 150px">
                    <input type="button" value="编辑资料" class="updateButton" onclick="Navigate()" />
                </span>
            </p>
        </div>
    </div>

是放在了js中让其进行跳转。

<script type=text/javascript>
    function Navigate() {
        window.location.href = '@Url.Action("Update", "Customer")';
    }
</script>

这样就直接可以跳转了。

下面是我写的。

    <a href="@Url.Action("Update", "Customer")" style="padding: 90px;">
        <input type="button" value="编辑" style="background-color: peru; width: 45px; height: 30px;" />
    </a>

就是因为这个<a>标签,导致在用户修改完数据返回来的时候,会把下滑线变粗,变黑。

相关文章:

  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2019-12-07
  • 2021-09-21
  • 2022-01-04
  • 2021-09-25
猜你喜欢
  • 2021-12-31
  • 2021-07-16
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案