答案 0 :(得分:3)
嗨参考为图片添加css:
#qrcode img{
width: 100%;
}
答案 1 :(得分:1)
在您的codepen上,它在图像上的宽度为100%
if (localStorage["note"])
{
var user = localStorage["note"] ;
document.getElementById("note").value = user ;
}
else
{
document.getElementById("note").placeholder = "notes" ;
console.log("notes not found in localStorage")
}
document.getElementById("save").addEventListener("click", function ()
{
var user = document.getElementById("note").value ;
localStorage.setItem("note", note) ;
alert("note id saved") ;
} , false);
function closeIt(that) {
var cls = parseInt(that.parent().parent().attr('class').split(' ')[1]);
var index = arr.indexOf(cls);
console.log('.note.'+cls+' '+index);
arr.splice(index,1);
that.parent().parent().remove();
}