Home > Web Front-end > HTML Tutorial > 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

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

WBOY
Release: 2016-06-24 11:47:55
Original
1675 people have browsed it

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:













Reply to discussion (solution)

It may be a path problem with css loading. You can directly access your ccs file below to confirm whether the path is correct
The problem has been solved. I added the code bit by bit from the beginning, checked the code thoroughly, and finally found the reason. It turns out that there is a "}" missing from the end of a css style. It's really secretive, but it's better to be reminded by others.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template