Tag: hack

YUI Reset CSSとIE6用position:fixed;Hack

先月からだらだらとこのブログの新テーマを作ってて、うまくいかないなぁ→かいけつ!となったので書いとくね。

position:fixed;はIE6だけ対応してないのでそれのHackを施す(詳しくはこちら)んだけど、YUI Reset CSSを使ってるとやや不具合が起こる。body{background:url(null) fixed;}を書いてるのに動きがガタつく。Reset CSSを読み込まないと、スムースに動く。問題なし。

んでまぁbody…が効いてないってことはReset CSSに書かれたbody自体かもしくはその上位のものが影響してるってわけで、Reset CSSでそれっぽいものを上書きしてみるとビンゴ。html{background:#fff;}が不具合の原因だった。

なので、cssにhtml{background:none;}と書いてReset CSSのを上書きすればOK。

しかしあれだねぇ。仕事じゃないってなるとだらだらやっちゃうもんだねぇ。ちょっとは焦らなきゃねぇ。

Me

Yasutaka Sato

more

Tags
add-on again album amazon analytics animal apologize app apple appreciation bag baseball battle beauty birthday blog blood blue bluetooth body book bookmark bought brave broken browser burn camera canon canvas car care catalyst change chocolate chrome chromium circle cleaning code coffee coffeeshop coke command communication complete conference cook coupon creation css cui cute dark db design desire desktop diary disqualification dizzy drama dream drive drunk eeepc empty erotic error essay fake false fav festival firewall fireworks flirt font food forgot fortune frame france friends from iPhone fx game geek geolocation girl google graph hack hatena headache holiday hot house hungry ice impressions interesting ipad iphone ipod itunes jailbreak jetpack jquery js json kicks kiss kobe kyoto leopard lie life lifestyle light lighttpd linux livedoor logic lost love lunch lyric mac macbook mail map maps marriage mcdonald's me memo mental message microsoft miss misunderstanding mobile moblin morning mouse movie music mysql mystery name neet netbook newbalance news newyear night notebook occupation omelet os pack pain parting past pc peace peperoncino perl phobia photo photoshare php picture plan pleasure plugin poem pop producer profile pwned rabbit radio rain rap recipe redo regret relation release remember reminiscence repeat reverse rice rip rnb rrd sakura scan scare search server sex shinjuku sick simple sky slept slim smell snack snowboard softbank sorrow sound souvenir spaghetti speed sports ssd star start station store streaming stupid stystk suicide summer sunrise switch tears temperature temple terminal test thanks thought time tips tokyo trable trance travel true tumblr twitter uneasy urban used uupaa vacation various vertigo video walk wandering web weight wifi word work wp year-end you youtube