■ソース(sample.js)
$(function() {
$("#test3").css({
"flot":"left",
"width":"20%"
});
$("#test4").css({ "flot":"rigth", "width":"80%" });
});
■ソース(sample.html)
<html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script src="./sample.js"></script> <head> <body> <div id="test3">aaaaaa</div> <div id="test4">cccccc</div> </body> </html>上記のソースなのですが、複数のIDを書いても動かないのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。