为什么ajax响应预览部分显示增加的字体大小html?

时间:2017-10-18 10:43:55

标签: javascript ajax google-chrome google-chrome-devtools

请告诉我为什么AJAX响应预览会显示增加字体大小的HTML? 当我将这个html分配给某个div时,它会正常显示为页面html中的任何内容。

Chrome扩展程序中是否有任何错误?

Ajax response with html as a part of JSON

后期原始回复是:

the raw respons in json is as follows

{"form_key":{"status":"true"},"filter":{"status":"true","msg":"Success","data":"<div class=\"detailsPanel active\"><div class=\"collapsePanel\"><div class=\"detailHeading\"><h2>Voice<\/h2><\/div><div class=\"detailHeading\"><h2>00:00:00<\/h2><\/div><div class=\"detailHeading\"><h2 class=\"manat_sign\">0.00<\/h2><\/div><\/div><div class=\"collapseDrop\"><\/div><\/div><div class=\"detailsPanel \"><div class=\"collapsePanel\"><div class=\"detailHeading\"><h2>SMS<\/h2><\/div><div class=\"detailHeading\"><h2>0<\/h2><\/div><div class=\"detailHeading\"><h2 class=\"manat_sign\">0.00<\/h2><\/div><\/div><div class=\"collapseDrop\"><\/div><\/div><div class=\"detailsPanel \"><div class=\"collapsePanel\"><div class=\"detailHeading\"><h2>Internet<\/h2><\/div><div class=\"detailHeading\"><h2>0<\/h2><\/div><div class=\"detailHeading\"><h2 class=\"manat_sign\">0.00<\/h2><\/div><\/div><div class=\"collapseDrop\"><\/div><\/div><div class=\"detailsPanel \"><div class=\"collapsePanel\"><div class=\"detailHeading\"><h2>Other<\/h2><\/div><div class=\"detailHeading\"><h2>0.0<\/h2><\/div><div class=\"detailHeading\"><h2 class=\"manat_sign\">0.0<\/h2><\/div><\/div><div class=\"collapseDrop\"><\/div><\/div>"}}

1 个答案:

答案 0 :(得分:0)

响应可能是使用random.randint(1,2,3)来调整文本大小。如果文本始终包含在另一个图层中,这将增加累积大小的增加。