1

I am trying to use two anything sliders on one page.

I need to style them differently.

I cannot seem to figure out how to call to a second style sheet without causing the second one to override the first one altogether. The URL for the site I am working on is:

http://e4dv3.businesscatalyst.com/home.htm

4

1 に答える 1

2

1 つのスライダーの一意の ID を指定し、CSS でそれを参照します。

つまり<div id="top">...</div>、最初のスライダーの周りに a を置きます。その後、使用できます

#top div.anythingSlider .anythingControls ul a {
  background: url("../images/someotherimage.png");
}

デフォルトの画像とクラスをオーバーライドすると、最初のスライダーにのみ適用されます。

ネストの詳細については、http://www.w3schools.com/css/css_grouping_nesting.aspをご覧ください。

于 2012-01-12T23:37:42.970 に答える