在IE和Mozila中显示彩色,但在crome中不显示 [英] color show in IE, Mozila but not show in crome

查看:99
本文介绍了在IE和Mozila中显示彩色,但在crome中不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,


我在颜色为red.red的项目中使用了一行.它在IE和Firefox中均有效.
但不能在crome工作,如何解决这个问题…….

这是我在我们的项目中使用的代码.


Dear friend,


i am using a line in a project which color difine red.it work in IE and Firefox.
but not working in crome how to solve it plese tell.......

here is code which i used in our project.


<div style="width: 100%;">
          <hr style="width: 100%; color: red" />
   </div>











thanks in advance.

推荐答案

尝试删除空格.另外,请查看是否插入了一些文本,如果对象根本没有任何大小.您可以右键单击Chrome浏览器来检查元素,以查看您的HR元素在屏幕上的大小.您还可以在那里查看CSS可能对您的代码产生的影响.我会尝试将实际宽度放置在某处,看看是否有帮助.
Try removing the spaces. Also, see if you insert some text, if the object has any size at all. You can inspect element with a right click in chrome, to see how big your HR element is on screen. You can also see in there what CSS may be impacting on your code. I''d try putting an actual width somewhere and see if that helps.


改用border-color,实际上颜色没有意义,而chrome对它没有反应...

use border-color instead , actually color doesn''t makes sense and chrome doesnt react to it...

<hr style="border-color:#aabbcc;"></hr>


希望这对您有帮助...


hope this helps...


这篇关于在IE和Mozila中显示彩色,但在crome中不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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