pdf page display compatibility problems

No measure is compatible when using HTML5 embed tag but also asked also appeared unrealistic pdf file in IE browser and 360, we can only give up, for another way to introduce plug-vue-pdf compatibility problems solve.

First introduced plug-in,

npm install --save vue-pdf

With the introduction of the page 

import pdf from 'vue-pdf';
components: {
      pdf
    },

The page can be used directly

<pdf :src="url" style="width: 100%; height: 600px;overflow-y: scroll;overflow-x: hidden;"></pdf>

 

Guess you like

Origin blog.csdn.net/qq_39598092/article/details/90716652