Html 为什么可以';我的网页不能应用CSS吗?

Html 为什么可以';我的网页不能应用CSS吗?,html,css,encoding,Html,Css,Encoding,我有一个简单的网站(主要是静态html/css),但由于某些原因,一些页面不会在Firefox中应用外部css(在IE中工作) -坏了 -很好 我比较了两个文件,看不出有什么不同。我在editplus和记事本中试用过。当我用firebug和fresh查看破损的页面时,我开始看到到处都是汉字。不知道该如何解决,或者它是如何发生的。我担心这个网站已经被其他人修改了,或者可能是一个编辑以某种方式添加了这些隐藏字符(我只使用VS2008和editplus) 我可以在破损的页面上看到js中的错误,但是相同

我有一个简单的网站(主要是静态html/css),但由于某些原因,一些页面不会在Firefox中应用外部css(在IE中工作)

-坏了

-很好

我比较了两个文件,看不出有什么不同。我在editplus和记事本中试用过。当我用firebug和fresh查看破损的页面时,我开始看到到处都是汉字。不知道该如何解决,或者它是如何发生的。我担心这个网站已经被其他人修改了,或者可能是一个编辑以某种方式添加了这些隐藏字符(我只使用VS2008和editplus)

我可以在破损的页面上看到js中的错误,但是相同的代码在工作页面上没有给出错误

有人能为发生的事情提供解决方案和原因吗

谢谢
Denis

检查html文件的编码

索引是ISO-8859-1和服务utf-16(这就是为什么您会看到奇怪的字符)


在编辑器中打开文件,在“另存为”中单击clic,并将service.html的编码更改回iso

检查html文件的编码

索引是ISO-8859-1和服务utf-16(这就是为什么您会看到奇怪的字符)


在编辑器中打开文件,在“另存为”中单击clic,并将service.html的编码更改回iso

services.html似乎是使用UTF-16编码的,因此Firefox试图使用相同的编码来解释样式表


对所使用的编码保持一致(UTF-8是一个不错的选择),并配置您的Web服务器以在HTTP响应头中指定该编码。

services.html似乎是使用UTF-16编码的,因此Firefox正在尝试使用相同的编码来解释样式表

对所使用的编码保持一致(UTF-8是一个不错的选择),并将您的Web服务器配置为在HTTP响应头中指定该编码。

“CSS文件注释中的*********************************************”可能是问题,请尝试删除该注释

警告:搜索“,”或“{”时出现意外的文件结尾。由于选择器错误,规则集被忽略。 源文件: 行:1

根据Firefox(查看源代码),损坏的源文件以UTF-16编码,但作为iso-8859-1使用。

“***************************************************”在CSS文件注释中可能会出现问题,请尝试删除该注释

警告:搜索“,”或“{”时出现意外的文件结尾。由于选择器错误,规则集被忽略。 源文件: 行:1


根据Firefox(查看源代码),您的断开的源文件以UTF-16编码但是作为iso-8859-1使用。

您的javascript中有一个错误:\u gat未在中定义…它看起来像services.html中的第184行。

您的javascript中有一个错误:\u gat未在中定义…它看起来像services.html中的第184行。

您可能需要确保样式表的路径实际到达文件夹w这里是您的样式表

完整路径应该是

这是您的完整页面,路径已更正

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta name="Description" content="Boats, Power, Sail, Marina, Berths, Malahide, Dublin, Bangor, Cork, Malta" />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Denis Hoctor - denishoctor&#64;gmail.com" />
<meta name="Robots" content="index,follow" />

<link rel="stylesheet" href="http://bjmarine.net/images/bjmarine.css" type="text/css" /><link rel="icon" href="/favicon.ico" type="image/x-icon">

<title>BJ Marine.net Power/Sail New &amp; Used Boats</title>


</head>

<body>
<!-- wrap starts here -->
<div id="wrap">

    <div id="header">

        <div id="logo"><img src="images/BJMarineLogo811x77.jpg" width="811" height="77" alt="BJ Marine Header" class="no-border" /></div>    

        <!-- Menu Tabs -->
        <ul>
            <li><a href="index.html"><span>Home</span></a></li>

            <li><a href="featuredboats.html"><span>FeaturedBoats</span></a></li>
            <li><a href="newboats.html"><span>NewBoats</span></a></li>
            <li><a href="brokerage.html"><span>UsedBoats</span></a></li>
            <li><a href="ouroffices.html"><span>OurOffices</span></a></li>
            <li><a href="salesteam.html"><span>SalesTeam</span></a></li>
            <li><a href="sellyourboat.html"><span>SellYourBoat</span></a></li>

            <li id="current"><a href="services.html"><span>Services</span></a></li>
            <li><a href="contact.html"><span>Contact</span></a></li>
        </ul>

    </div>

    <!-- content-wrap starts here -->
    <div id="content-wrap">    

      <div id="header-columns">

        <div class="col7"><a href="new/newboatsframe.html#http://www.beneteau.com/" id="img_rollover_beneteau"><span>Beneteau</span></a></div>
        <div class="col7"><a href="new/newboatsframe.html#http://www.searay.com/" id="img_rollover_searay"><span>Searay</span></a></div>
        <div class="col7-center"><a href="new/newboatsframe.html#http://www.cranchi.com/" id="img_rollover_cranchi"><span>Cranchi</span></a></div>
        <div class="col7-center"><a href="new/newboatsframe.html#http://www.ferretti-yachts.com/" id="img_rollover_ferretti"><span>Ferretti</span></a></div>
           <div class="col7-center"><a href="new/newboatsframe.html#http://www.customline-yacht.com/" id="img_rollover_customline"><span>Customline</span></a></div>
        <div class="col7-center"><a href="new/newboatsframe.html#http://www.mochicraft.com/" id="img_rollover_mochicraft"><span>Mochi Craft</span></a></div>

        <div class="col7-center"><a href="new/newboatsframe.html#http://www.searanger.com/" id="img_rollover_searanger"><span>Searanger</span></a></div>
      </div>

        <div id="main">
            <h1>Services</h1>

            <p>At our bases in Malahide and Bangor we have the best lifting and boatyard facilities 
            on the east coast, with capacity for 180 boats ashore in safe, secure boatyards.</p>

            <h3>Parts Department</h3>

            <div class="staff-columns">
                <div>
                    <p>Our parts department can be contacted directly by email at <a href="mailto:parts&#64;bjmarine.net">parts&#64;bjmarine.net</a> or telephone <strong>+353 1 8061560</strong>. We supply a comprehensive range of all spare parts for the boat brands that we sell. We also supply the following –</p>
                    <ul style="padding-left: 60px;">
                        <li>Raymarine onboard marine electronic instruments</li>

                        <li>Garmin marine equipment</li>
                        <li>C-Map electronic navigation charts</li>
                        <li>Navionics Marine Charts</li>
                        <li>Garmin Bluechart</li>
                        <li>Sparcraft masts, booms and rigging systems</li>
                        <li>Facnor furling systems</li>

                        <li>Quantum Sails, premier sail design and suppliers</li>
                        <li>Volvo, Yanmar and Mercruiser marine engine parts</li>
                        <li>Trailers</li>
                    </ul>
                </div>
            </div>
            <a href="http://www.dmgsailsports.com/"><img src="images/dmglogo.jpg" width="294" height="130" alt="DMG services" class="float-right-noborder" /></a>

            <br />
            <h3>Training</h3>
            <p>DMG Sailsports is an ISA Training Centre based in Malahide, Co. Dublin, Ireland. Their courses are based on the ISA Powerboat Scheme and ISA Windsurfing Schemes. Personalised private sail coaching is available to those who have their own boats and would like lessons tailored to their specific needs by our highly experienced ISA Instructors. All of our courses are delivered to the highest standards for both professional and recreational clients and are run all year round, 7 days a week.</p>
            <br />
            <h3>Marina Berths</h3>
            <p>We can facilitate your boating needs in Portugal, Spain, France, Malta and many other Mediterranean destinations Berths and deliveries etc.</p>
            <br />

            <a href="http://www.lombard.ie/lombard/ireland/personal_customers/marine/index.html"><img src="images/lombard.jpg" width="220" height="83" alt="Lombard Marine Finance" class="float-right-noborder" /></a>
            <h3>Finance</h3>
            <p>Whatever your boating dream you could realise it quickly and easily with <a href="http://www.lombard.ie/lombard/ireland/personal_customers/marine/index.html">Lombard Marine Finance</a>.</p>
            <br /><br />
            <h3>Weather and tides</h3>
            <ul class="tidelist">

                <li>
                    <a href="http://www.met.ie/forecasts/sea-area.asp">Met Eireann</a> – Sea area Forcast
                    <a href="http://www.met.ie/forecasts/sea-area.asp"><img src="images/met_logo.gif" width="60" height="32" alt="MET Eireann logo" class="float-right-noborder-tides" /></a>
                </li>
                <li><a href="http://www.met.ie/latest/buoy.asp">M2 Weather buoy</a> – Approx 20 nautical miles east of Howth Headt</li>
                <li>
                    <a href="http://www.ireland.com/weather/tides.htm">Irish Daily Tides</a>

                    <a href="http://www.ireland.com/weather/tides.htm"><img src="images/irishtimes_logo.gif" width="175" height="17" alt="Irish Times logo" class="float-right-noborder-tides" /></a>
                </li>
                <li>
                    <a href="http://www.windguru.cz/int/index.php?sc=47773">WindGuru</a>
                    <a href="http://www.windguru.cz/int/index.php?sc=47773"><img src="images/windguru_logo.gif" width="175" height="55" alt="Wind Guru logo" class="float-right-noborder-tides" /></a>
                </li>
            </ul>
        </div>


    <!-- content-wrap ends here -->        
    </div>

    <div id="footer-wrap">
        <div id="footer-columns">
            <div class="col3">
                <h3>Dublin</h3>
                <code>
                    Malahide<br />

                    Dublin, Ireland<br />
                    Tel:(+353) 1 8061560<br />
                    <a href="mailto:sales&#64;bjmarine.net">sales&#64;bjmarine.net</a>
                </code>
            </div>

            <div class="col3-center">

                <h3>Cork</h3>
                <code>
                    Co. Cork<br />
                    Ireland<br />
                    Tel:(+353) 87 7712224<br />
                    <a href="mailto:sales&#64;bjmarine.net">sales&#64;bjmarine.net</a>

                </code>
            </div>

            <div class="col3-center">
                <h3>Belfast</h3>
                <code>
                    Bangor Marina<br />
                    Co. Down, N. Ireland<br />

                    Tel:(+44) 2891 271434<br />
                    <a href="mailto:sales&#64;bjmarine.net">sales&#64;bjmarine.net</a>
                </code>
            </div>

            <div class="col3">
                <h3>Mediterranean</h3>

                <code>

                    Grand Harbour Marina<br />
                    Malta<br />
                    Tel:(+356) 27019356<br />
                    <a href="mailto:sales&#64;bjmarine.net">sales&#64;bjmarine.net</a>
                </code>

            </div>
        <!-- footer-columns ends -->
        </div>

        <div id="footer-bottom">        

            <p>
            &copy; 2008 <strong>BJ Marine Ltd.</strong> | 
            Design by: <a href="mailto:denishoctor&#64;gmail.com">Denis Hoctor</a> | 
            Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | 
            <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>


           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

            <a href="index.html">Home</a>&nbsp;|&nbsp;
           <a href="contact.html">Contact</a>
           </p>    

        </div>    

<!-- footer ends-->
</div>
<!-- wrap ends here -->
</div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-1206900-2");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</body>
</html>


BJ Marine.net Power/Sail新船和旧船
服务 在我们位于马拉希德和班戈的基地,我们拥有最好的起重和船坞设施 在东海岸,可以在安全的船坞中容纳180艘船上岸

零件部 我们的配件部门可以通过电子邮件或电话直接联系+353 1 8061560。我们为我们销售的船品牌提供全面的配件。我们还提供以下-

  • 船载电子仪器
  • Garmin船用设备
  • C-地图电子导航图
  • 航空电子海图
  • 加明蓝图
  • Sparcraft桅杆、吊杆和索具系统
  • Facnor-furling系统
  • Quantum Sails,卓越风帆设计和供应商
  • 沃尔沃、Yanmar和Mercruiser船用发动机零件
  • 拖车

训练 DMG Sailsports是一家位于爱尔兰都柏林Malahide公司的ISA培训中心。他们的课程基于ISA动力艇计划和ISA风帆冲浪计划。拥有自己的船只并希望我们经验丰富的ISA教练根据他们的具体需要量身定制课程的人可获得个性化的私人帆船教练。所有我们的课程为专业和娱乐客户提供最高标准,全年每周7天


码头泊位 我们可以满足您在葡萄牙、西班牙、法国、马耳他和许多其他地中海目的地的划船需求、泊位和交货等


财务 无论你的划船梦想是什么,你都可以很快很容易地实现



天气和潮汐
  • -海域预测
  • -豪斯河以东约20海里
    .align-centre
    
    }