2014-05-14 103 views
-1

我的網站的設計被集成到他們的公司。基本上他們正在用我的信息和標誌重新標記他們的網站。他們想要額外的錢來更改任何HTML文件。我只能訪問樣式表.css文件和圖像。我試過在CSS懸停,但我希望它保持開放,如果點擊。或懸停並延遲關閉之前CSS點擊時只顯示樣式表

我可以使用下面的示例中列出的h3進行css顯示/隱藏:我想隱藏每個h3下的內容,直到用戶單擊它爲止。我縮短了從產品頁面拉出的HTMl用於示例目的。

<div id="product_text_content"> 
<p>Digital Brochures come in full color on 1 or 2 sides. Available options: 8 paper stocks, 5 sizes, and 3 coatings.</p> 
<h3 class="gray">SIZE:</h3> 

<ol> 
    <li>8.5" x 11"</li> 
    <li>8.5" x 14"</li> 
    <li>11" x 17"</li> 
    <li>11.5" x 17.5"</li> 
    <li>5.5" x 8.5"</li> 
</ol> 
<h3 class="gray">PAPER OPTIONS:</h3> 

<ol> 
    <li>100# Gloss Text available</li> 
    <li>95# Gloss Cover available</li> 
    <li>80# Uncoated Offset Smooth Text</li> 
    <li>100# Uncoated Cover available</li> 
    <li>70# White Linen Text</li> 
    <li>100# White Linen Cover</li> 
</ol> 
<h3 class="gray">COATING OPTIONS:</h3> 

<ol> 
    <li>No Coating available on all stocks.</li> 
</ol> 
<h3 class="gray">FOLDING OPTIONS:</h3> 

<ol> 
    <li>Tri-Fold</li> 
    <li>Z-Fold</li> 
    <li>... and more</li> 
</ol> 
<h3>Custom Estimate:</h3> 

<p>For custom orders or quantities not listed for your desired product, please <a href="/account/estimate">click here</a> for a custom estimate.</p> 
<h3>Explanation of Turnaround Time</h3> 

<p>Here's a quick chart to explain turnaround times:</p> 
<img src="/img/products/turnaround.png" height="375" width="380"> 
<p>Please note that turnaround time does not include shipping or mailing time. You may select from available production turnaround times and your preferred shipping time as you place your order.</p> 
<p>Turnaround times begin when the proof is approved. All times are based on standard business days Monday through Friday excluding federal holidays. For orders shipping to the <font color="blue">blue zone</font>, please use the Eastern time zone (New York). For orders shipping to the <font color="red">red zone</font>, please use the Pacific time zone (California). Please see the below map:</p> 
<img src="/img/products/map.jpg" height="155" width="300"> 
<p>Our products are the same great quality for every turnaround time we offer.</p> 

回答

0

要開啓數據和關閉(顯示和隱藏在這種情況下),你需要用js/jQuery的。這隻能通過HTML調用,所以恐怕你可能不得不硬着頭皮爲HTML訪問付費。