简体   繁体   中英

CSS float:right isn't applying

http://www.fccorp.us/_projects/jfx.projects.s4a.php

The first and third image have a class="imgright" in the html tag, yet the properties aren't being applied.

The second image has a class="imgleft" in the tag, and it IS working.

The CSS:

.imgright {float:right; margin:3px; margin-left:20px;}
.imgleft {float:left; margin:3px; margin-right:20px;}

The HTML (the image tag):

<img src="../_pic-lib/_projects/fcrr-2-v1.png" class="imgright" style="margin-bottom:1px !important; -moz-force-broken-image-icon:1;" width="488" height="193" alt="Missing S.4.a Image" />

<img src="../_pic-lib/_projects/fcrr-2-v2.png" class="imgleft" style="margin-bottom:1px !important;-moz-force-broken-image-icon:1;" width="400" height="267" alt="Missing S.4.a Image" />

And of course, you can view the page sources at http://www.fccorp.us/_projects/jfx.projects.s4a.php

What little, obvious thing am I missing? What really gets me is that this all worked fine the other day when the pages were in website's root directory. I just don't know what I changed accidentally since then that broke this.

Thanx, -JD

您的样式表中的第67行有一个.engname ,它禁用了随后的样式。

在第67行的名为“ fccorp-us.css”的css文件中,有一个名为“ .engname”的类,没有打开和关闭标签。

.engname{}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM