Home > Article > Web Front-end > Why can the CSS style in the jsp file be displayed in dreamweaver, but not in myeclipse through the tomcat server? _html/css_WEB-ITnose
The css style in the jsp file can be displayed in dreamweaver; but it cannot be displayed when running tomcat6 in myeclipse?
css styles are written in jsp files. There is no path problem.
There should be no duplicate divs
as shown in the picture:
This is what dreamweaver looks like:
After running myeclipse, it looks like this:
This is the css style code:
/*==Product Category==*/
/*.sp{width:930px; border-left:#D0D0D0 1px solid; border-right:#D0D0D0 1px solid; margin:0px auto; height:37px ; line-height:37px;}*/
.sp{position:absolute; left:9%;width:198px;height:450px; top:538px; border-top:#D0D0D0 1px solid; border-bottom: #D0D0D0 1px solid;}
.sortpic{position:absolute; left:9%;width:198px;height:450px; top:538px; border-top:#D0D0D0 1px solid; border-bottom:#D0D0D0 1px solid ;}
.menustyle{height:32px; position:relative; margin-top:5px;}
.menustyle h2{position:absolute; left:-12px; width:230px; height:32px; line-height :24px; color:#FFFFFF; font-size:14px; background-image:url(images/menubg.gif); text-indent:20px; z-index:99;}
.prod_sort dl dt{clear: both; height:10px; background-color:#EAEAEA; margin:0px; color:#000000; font-weight:bold; text-indent:10px;}
.prod_sort dl dd{float:left; width:40px ; padding-left:0px; height:20px; line-height:20px; margin-left:20px; text-indent:0px; overflow:hidden; display:inline; background:url(images/point.gif) no-repeat 0px 9px;}
.prod_sort dl dd a{color:#000000;}
.prod_sort dl dd a:visited{color:#000000;}
This is the html code:
It may be a path problem with css loading. You can directly access your ccs file below to confirm whether the path is correct