我的xml和xsl没有在谷歌浏览器中显示,但它在其他浏览器中显示为什么?

时间:2014-12-22 15:19:11

标签: html xslt web cross-browser

<?xml version="1.0" encoding="utf-8"?> 

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--[if lt IE 7]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="/">
<html class="ie6 oldie"><![endif]-->
<!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!-->

<!--<![endif]-->
<head>

<link href="menupage-main.css" rel="stylesheet" type="text/css">


</link>

<link href="boilerplate.css" rel="stylesheet" type="text/css">


</link>
<link href="food_menu.css" rel="stylesheet" type="text/css">

</link>


<style type="text/css">
body {
    background-color: #2D2C2C;
    background-image: url(background.jpg);
    width:100%;
    height:100%;
}
body,td,th {
    color: #F0E199;
}
</style>


<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="respond.min.js"></script>

</head>
<body>

<DIV STYLE="background-image: url(background.jpg); background-size:200% 500%">

<div class="gridContainer clearfix">

<div id="header" class="fluid">

 <p align="center"><img src="header.jpg" alt="banner" width="100%" > </img></p>

  </div> </div>

这是我的XSL代码的一部分,其中包含html代码,需要在Google Chrome中运行。由于某种原因,Google Chrome中的xml数据无法在Google Chrome中查看。但是它在其他浏览器中也是如此。

1 个答案:

答案 0 :(得分:0)

您可以像XML Tree

一样使用Google Chrome扩展程序
相关问题