我有一個使用Bootstrap的網站。從技術上講,我目前使用Bootstrap 4。我想在我的頁面的公開部分中使用加速移動頁面(AMP)。但是,我有幾個我似乎無法動搖的錯誤。這讓我想知道,我甚至可以使用Bootstrap加速移動頁面?使用帶引導程序的加速移動頁面
我甚至允許在加速移動頁面中使用JavaScript嗎? Bootstrap爲手機上的漢堡菜單提供JavaScript。然而,當我運行驗證程序時,我看到如下錯誤:
The attribute 'href' in tag 'link rel=stylesheet for fonts' is set to the invalid value 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css'.
The attribute 'rel' in tag 'link rel=' is set to the invalid value
The tag 'script' is disallowed except in specific forms.
所以,回到我的問題。是否有可能使用加速移動頁面的Bootstrap 4網站?
謝謝!
不確定我是否正確地閱讀你的答案,或者如果只允許內聯樣式的部分不正確。閱讀文檔,看起來您可以使用內部樣式表(即在
標記中),但不是內聯樣式請參閱https://www.ampproject.org/docs/guides/responsive/style_pages – NivF007