简体   繁体   中英

CSS styling and transitions in gadget files

I have a simple HTML page of nine boxes (divs) which smoothly expand on hover using transitions. I've packaged it into a gadget file for the Windows 7 desktop and now all transitions are lost, even the radii on the boxes are gone.

Do gadget files not support CSS3 transitional statements and styling or do I need to be doing something else?

Thanks!

Try using vendor prefixes.

-webkit-transform: ;
-moz-transform: ;
-ms-transform: ;
-o-transform: ;
transform: ;

-webkit-border-radius: ;
-moz-border-radius: ;
-ms-border-radius: ;
-o-border-radius: ;
border-radius: ;

Add this at the top of your html file.

<!DOCTYPE html>

That will let you use more advance CSS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM