2007-05-01から1ヶ月間の記事一覧

リストメニューの画像置換

css

再読み込みなし プリロードいらず。 メニューの大きさが100 x 20としてみる。 html: <html> <body> <div id="menu"> <ul> <li><a href="#" id="hoge">hoge</li> <li><a href="#" id="moge">moge</li> </ul> </div> </body> </html> css: #menu ul { margin: 0; padding: 0; overflow:hidden; list-style-type: none; } #menu ul li { margin: 0; padding: 0…

pngの半透明2

id:oppara:20070420 AlphaImageLoaderのsizingMethod crop(オブジェクトのサイズを優先させる) image(イメージのサイズを優先させる) scale(オブジェクトのサイズにイメージのサイズを合わせる) <html> <body> <div id="hoge"> <p><a href="#">hogehoge</a></p> <div class="alpha"></div> </div> <div class="moge">mogemoge</div> <div class="moge">mogemoge</div> </body> </html>

clearfix

css

【IE7対応clearfix】さらに続報、コピペでつかえる主要ブラウザをclearす... http://bowz.info/2006/10/31/150705 .clearfix { zoom: 1; /* for IE5.5 - IE7 */ display: inline-table; /* for IE-mac */ } /* Hides from IE-mac \*/ .clearfix { display: …

プルダウンメニュー

http://www.designmeme.com/articles/csspulldownmenu/ http://blog.faro.main.jp/?eid=591449 cssの設定でかなりぶれる。。 css: #menu { text-align: left; } #menu ul, #menu li { list-style: none; margin: 0; padding: 0; } #menu ul#mainMenu li, #me…

FirefoxとParallels

Firefoxが起動してない時に tell application "Firefox"するとParallels内のFirefoxを起動しようとするので、 if ( isRunFs() ) then tell application "Firefox" -- 処理 end tell else display dialog { "try again." } -- つづけて処理をしようとすると -…

tidy

HTML Tidy Project Pageデフォルトが古かったので、portで新しめのものをインストール。 Clean up your Web pages with HTML TIDY $ tidy -config /path/to/conf file1.html file2.html 微妙に不満だったので力技で修正。 #!/bin/sh conf='/path/to/conf' ti…

ソースコード整形

php

PHP_Beautifierphp5に切替えて $ sudo pear install PHP_Beautifier $ cd ~/src $ curl -O http://pear.php.net/get/PHP_Beautifier-0.1.3.tgz $ tar xzvf PHP_Beautifier-0.1.3.tgz $ mv PHP_Beautifier-0.1.3/scripts/php_beautifier ~/bin/. $ vi ~/bin/p…

ソースコード整形

The Perltidy Home Page .perltidyrc(Best Practices & ねずみ本) -l=78 # Max line witdh is 78 cols -i=4 # Indent level is 4 cols -ci=4 # Continuation indent is 4 cols -st # Output to STDOUT -se # Errors to STDERR -vt=2 # Maximal vertical tigh…