Using Accelerated Mobile Pages with Bootstrap

前端 未结 6 659

I have a website that uses Bootstrap. Technically, I\'m using Bootstrap 4 at the moment. I want to leverage Accelerated Mobile Pages (AMP) in the publicly-facing parts of my

6条回答
  •  臣服心动
    2020-12-31 09:55

    As per the AMP specification you can only use inline css with a total max size of 50kb. You can use bootstrap css and components with AMP if those components do not rely on bootstrap.js since AMP dosent allow 3rd party JS as of now.

    Plus, you need to remove !important wherever it is used in bootstrap css as AMP restricts the use of !important in inline css.

提交回复
热议问题