$(function(){
var strAlt=$("img").attr("title");
strAlt +="<br/><br/>"+$("img").attr("src");
$("divAlt").html(strAlt);


})

随机图片
$(function(){
$("img").attr("src".function(){
return "images/img0"+Math.floor(Math.random()*2+1)+".jpg"
});
$("img").attr("title","这是一幅风景画");
$("img").addClass("clsImg");

})

相关文章:

  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-07-21
  • 2021-07-19
  • 2021-06-08
  • 2022-01-12
  • 2021-11-30
猜你喜欢
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2021-05-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案