J'ai un div qui est 90x110 comment puis-je restreindre l'image de fond que je dois utiliser à cette taille? l'image de fond est 120x100?div background image
0
A
Répondre
1
Alors que l'image de fond sera recadrée à la taille de votre div automatiquement, au cas où il y a tout autre contenu qui ne reste pas, vous pouvez toujours trop-plein de caché dans votre CSS:
overflow:hidden;
Vous pouvez également redimensionner vos images d'arrière-plan, le cas échéant. S'il vous plaît jeter un oeil à this et this pour voir comment cela peut être réalisé (il existe plusieurs façons).
Oh, vous voudrez peut-être aussi jeter un oeil à un similar SO question posté il y a quelques heures.
0
La div ne grossira pas, la seule partie de l'image d'arrière-plan qui sera visible sera un rectangle de 90x110.
Questions connexes
- 1. bootstrap div background-image
- 2. Redimensionner div background image
- 3. Image en mémoire comme div background-image
- 4. background image répétition verticale pour un div
- 5. jquery ou javascript div background image changement
- 6. div background-image url comme chaîne
- 7. IE montrant seulement 1 background image div intérieur div
- 8. Float background-image verticale sous un autre background-image
- 9. Dépannage CSS background-image
- 10. Footer background image css
- 11. Jquery - background-image click
- 12. CSS Floating Div avec Image VS Floating Div avec Div ayant background-image
- 13. jquery background image préchargement
- 14. CSS problème background-image
- 15. Background-Image fondu jquery
- 16. background image aide
- 17. Bootstrap responsive background image
- 18. Slideshow background image
- 19. CSS background-image
- 20. Phonegap css background image ppp
- 21. background image url linking issue
- 22. Comment savoir si div BackGround Image est chargé
- 23. background image in layoutunit
- 24. Slideshow background image
- 25. wxPython Button Background Image
- 26. Gtk # background image
- 27. Coloriser Background-Image
- 28. étendre background image hauteur
- 29. DirectX background image
- 30. iOS 6 background image
est-il maintenant de redimensionner l'image pour correspondre à la taille de la div? –
il semble que j'ajoutais juste cette information pendant que vous écrivez le commentaire: D – mingos
pas de solution parfaite qui fonctionne avec IE6 alors? –