URL: https://www.overclockers.at/coding-stuff/html_css_frage_zu_script_158397/page_1 - zur Vollversion wechseln!
Hab hier ein kleines "CSS-Script" gebaut, was im FF auch funzt. Nur IEXplorer macht mal wieder Probleme, wobei ich bis jetzt nicht herausgefunden habe, wo das Problem liegt:
Code: PHP<html> <head> <style type="text/css"> #pic { width: 200px; height: 220px; background: url(http://www.overclockers.at/images/v4sz.png) no-repeat; } #pic:hover { background-position: 0px 100%; } </style> </head> <body> <table> <tr> <td id="pic"></td> </tr> </table> </body> </html>
Huch, was macht das HTML mitten im CSS?
also ich hab das gesamte <a> tag rausnehmen müssen, sonst seh ich garnichts.
Danach zeigen FF und IE7 das gleiche verhalten.
Zitat von thatHuch, was macht das HTML mitten im CSS?
IE < 7 kann :hover nur auf Links
Zitat von RektalIE < 7 kann :hover nur auf Links
Code: PHP<html> <head> <title>css/script</title> <style type="text/css"> #pic a { width: 200px; height: 220px; background: url(http://www.overclockers.at/images/v4sz.png) 0px 0px no-repeat; display: table-cell; } #pic a:hover { background-position: 0px 100%; } </style> </head> <body> <div id="pic"> <a href="#"></a> </div> </body> </html>
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025