我正逐渐淡出,在一个div中:
$('.formErrors').fadeTo('fast', 0);
$('.formErrors').fadeTo('slow', 1);
Run Code Online (Sandbox Code Playgroud)
但是当我在IE 8中执行此操作时,似乎有点CSS:
.formErrors li { font-weight: bold; }
Run Code Online (Sandbox Code Playgroud)
导致文本回复相当扭曲:(图片如下)
http://www.newmania.com/images/error.jpg
我申请的HTML是:
<div class="formErrors">
There are errors in your submission. Please fix the following and try again:
<ul><li>Action is empty</li></ul>
</div>
Run Code Online (Sandbox Code Playgroud)
它在Firefox中运行良好.有什么想法吗?
Kob*_*obi 10
如果您还没有图像,常见的解决方案是定义背景颜色:http:
//jsbin.com/axapa
.formErrors {background-color:white;}
Run Code Online (Sandbox Code Playgroud)
另一个选择是使用fadeIn和fadeOut:动画直到丑陋,但至少它最终很好:http://jsbin.com/aboxa
| 归档时间: |
|
| 查看次数: |
4771 次 |
| 最近记录: |