[英]How do I loop over images in table, get the src of ALL images and apply to new images in new table?
[英]In CSS How do I Highlight all Images from a Link and apply a Border around those Images and apply to the whole Website?
我是仍在學習Javascript / CSS的完全菜鳥
a:visited img {
background-color:transparent;
border:none;
}
這適用於onclick,但我希望此代碼顯示在我已批量單擊的所有圖像上,而無需從具有PID號的特定URL重新單擊它們,該URL在查看保存在收藏夾中的圖像時一次可保存50張圖像。 我怎么做?
目前尚不清楚您要做什么,但是您可以嘗試以下一些方法:
這將應用於錨標記內的所有圖像
a img {
background-color:transparent;
border:none;
}
未訪問的鏈接
a:link img {
background-color:transparent;
border:none;
}
鼠標懸停鏈接
a:hover img {
background-color:transparent;
border:none;
}
選定的鏈接
a:active img {
background-color:transparent;
border:none;
}
來源 。 希望有幫助!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.