<!DOCTYPE html> <html lang="ja-JP"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,user-scalable=yes,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.5"> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script> $(function(){ $("input").click(function(){ $("div:first-of-type").css("margin-left","10px"); $("div:last-of-type").css("border-right","1px solid #FFFFFF"); }); }); </script> <style> body{ margin:0; padding:0; } footer{ position:fixed; bottom:0; width:100%; height:100px; color:#FFFFFF; background-color:#000000; } div{ float:left; padding-left:20px; width:80px; height:30px; margin:15px auto 5px auto; line-height:30px; border-left:1px solid #FFFFFF; } address{ clear:both; text-align:center; height:50px; line-height:50px; } </style> </head> <body> <input type="button" value="click"> <footer> <div>div要素</div> <div>div要素</div> <div>div要素</div> <div>div要素</div> <div>div要素</div> <div>div要素</div> <div>div要素</div> <div>div要素</div> <address>address要素</address> </footer> </body> </html>