0

Is there a way to have two different background images, one attached to each side of a div element, that do not insist on statically appearing when the window is resized smaller? In other words, if the div element is 900px wide and viewed on a small laptop, it will remain centered but only enough of the left and right backgrounds appear as required by the viewport size.

I think I've exhausted my limited CSS knowledge on this one.

4

1 に答える 1

0

この質問を再考する必要があると思います。背景は 1 つしかありません。ただし、必要に応じて、中央の div の両側に異なる背景を持つ同じサイズの Divを使用して、 1 つを右に、もう 1 つを左にフローティングすることで、同じ効果を得ることができます。その効果を得るには、 Jquery Accordion for Vertical Accordions を検討することを検討してください。

于 2012-04-23T21:05:54.683 に答える