2016-03-24 48 views
0

我試圖默認打開一個說明+按鈕,以便我的客戶不必點擊+打開按鈕查看說明,我希望它默認打開並且可以關閉。這是當前的代碼,我一直無法操作它默認打開。如何在Weebly中默認打開+按鈕

/*簡要說明*/

#wsite-com-product-short-description { 
margin: 30px auto 0; 
padding-top: 30px; 
border-top: 1px solid #dddddd; 
max-height: 20px; 
overflow: hidden; 
-webkit-transition: max-height .65s ease-in-out; 
-moz-transition: max-height .65s ease-in-out; 
-o-transition: max-height .65s ease-in-out; 
-ms-transition: max-height .65s ease-in-out; 
transition: max-height .65s ease-in-out; 
} 

#wsite-com-product-short-description:before { 
content: 'DESCRIPTION +'; 
display: block; 
font-family: "Montserrat"; 
font-size: .85em; 
margin-bottom: 10px; 
} 

#wsite-com-product-short-description.open { 
max-height: 800px; 
} 

#wsite-com-product-short-description.open:before { 
content: 'DESCRIPTION -'; 
} 
+0

您能否提供該網站的鏈接? – Miro

+0

當然,鏈接是:http://www.simplysheetsmonograms.com/store/p2/Mint_Chevron_Cosmetic_Bag.html –

回答

0

包括在你的自定義CSS的跟隨着。

#wsite-com-product-short-description { 
    max-height: 800px !important; 
} 

它強制通過將描述設置爲最小高度來擴展描述。