image
英[??m?d?] 美[??m?d?]
n.イメージ、ポートレート、コンセプト、意図、鏡、反射
vt .反映;想像;イメージを作成;シンボル
jQuery畫像セレクター 構(gòu)文
関數(shù)::畫像セレクターは、畫像タイプの <input> 要素を選択します。
構(gòu)文: $(":image")
jQuery畫像セレクター 例
<html> <head> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(":image").css("background-color","#B2E0FF"); }); </script> </head> <body> <html> <body> <form action=""> Name: <input type="text" name="user" /> <br /> Password: <input type="password" name="password" /> <br /> <input type="image" src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" /> </form> </body> </html> </body> </html>
[インスタンスの実行] ボタンをクリックしてオンライン インスタンスを表示します