I utilized a JavaScript function to add an image, which looked like this:
function show_image(src) {
var img = document.createElement("img");
img.src= src;
document.body.appendChild(img);
}
But when I attempt to change its style using CSS:
img {
//style attributes etc.
}
The image does not respond. How can I resolve this issue?