图像在普通页面上工作,但图像无法显示的放大版本。
这是一张图片的HTML代码,我使用WordPress并通过媒体库上传并插入:
import main, * as tiny from './tiny';
describe('main function', () => {
it('calls sub with correct arguments', () => {
tiny.sub = jest.fn();
main('hello world');
expect(tiny.sub).toHaveBeenCalled();
expect(tiny.sub).toHaveBeenCalledWith('hello world');
});
});

我是否需要插入一个脚本或其他东西才能在放大器上工作?
感谢您的时间,我很感激。
答案 0 :(得分:0)
使用amp-img代替img作为您网站的放大器版本。
<a href="#">
<amp-img src="http://mysiteexample.com/wp-content/uploads/2016/11/review-1024x768.jpg" width="256" height="192" layout="responsive" alt="Stanley Review"></amp-img>
</a>