2017-04-16 3 views
0

Meine Seite Code:asp.net Mvc AMP Projekt arbeiten nicht

@{ 
    Layout = null; 
} 
<!doctype html> 
<html amp lang="en"> 
<head> 
    <meta charset="utf-8"> 
    <title>Hello, AMPs</title> 
    <link rel="canonical" href="http://example.ampproject.org/article-metadata.html" /> 
    <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> 
    <script type="application/ld+json"> 
     { 
     "@@context": "http://schema.org", 
     "@@type": "NewsArticle", 
     "headline": "Open-source framework for publishing content", 
     "datePublished": "2015-10-07T12:02:41Z", 
     "image": [ 
     "logo.jpg" 
     ] 
     } 
    </script> 
    <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style> 
    <noscript> 
    <style amp-boilerplate> 
     body { 
      -webkit-animation: none; 
      -moz-animation: none; 
      -ms-animation: none; 
      animation: none 
     } 
    </style></noscript> 
    <script async src="https://cdn.ampproject.org/v0.js"></script> 
</head> 
<body> 
    <h1>Welcome to the mobile web</h1> 
</body> 
</html> 

ich kopieren und von AMP Projekt-Website einfügen, aber warum nicht funktionieren? Ich bekomme "Der obligatorische Text (CDATA) innerhalb des Tags 'noscript> Stil [amp-boilerplate]' fehlt oder ist falsch." Fehler. Meine Amp-Seite url: http://www.saharezervasyon.com/amp#development=1 mit Entwicklungsabfrage.

Antwort

0

Änderungen in diesem Teil

<style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style> 

kein Leerzeichen nach Körper und vor keine

Weitere Einzelheiten please visit this link

+0

Yess, vielen Dank @ bachcha-singh – CaKaL

Verwandte Themen