如何使用控件显示交叉或有效图像 [英] How to Show Cross or Valid Image With Control

查看:86
本文介绍了如何使用控件显示交叉或有效图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



默认情况下,MVC提供错误类:输入验证错误有效正确的价值。



我的要求:我需要在控件的Cornor上显示Image,因为它会产生错误或有效数据。



所以请建议我选择如何做。



请为我推荐任何教程或样本。



谢谢

Hi Everybody,

By Default MVC provides the Class for the Error : input-validation-error and Valid for right value.

My Requirement : I need to show Image on Cornor of Control when it generates error or valid data.

So please suggest me the option how to do that.

Please suggest me any tutorial or sample for that.

Thanks

推荐答案

更新.input-validation-error样式这样 -

其中/Images/error_arrow.png是用控件显示的图像路径



update .input-validation-error style like this -
where "/Images/error_arrow.png" is image path to show with control

.input-validation-error {
    background-image: url(/Images/error_arrow.png;) !important;
    background-position: 100% 50% !important;
    background-repeat: no-repeat !important;
    border-color: red !important;
    border-style: solid !important;
}


这篇关于如何使用控件显示交叉或有效图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆