<head><style> body{ font-family: helvetica; font-size: 12px; text-align: center; } .accordion{ display: inline-block; text-align: left; margin: 1%; width: 70%; &:hover{ // max-height technique .accordion-content{ // If use the "height: auto", the effect not works. Is necessary some value for the CSS create a CSS animate, and we can use "max-height" with a great value for emulate this effect. max-height: 300px; } } } .accordion-content{ -webkit-transition: max-height 1s; -moz-transition: max-height 1s; -ms-transition: max-height 1s; -o-transition: max-height 1s; transition: max-height 1s; background: #e5feff; overflow: hidden; // "height: 0" not work with css transitions max-height: 0; } .accordion-inner{ padding: 0 15px; } .accordion-toggle{ -webkit-transition: background .1s linear; -moz-transition: background .1s linear; -ms-transition: background .1s linear; -o-transition: background .1s linear; transition: background .1s linear; background: #00b8c9; text-align: center; text-decoration: none; &:hover{ background: darken(#00b8c9, 15%); } } </style></head> <div class="accordion"> <a href="#" class="accordion-toggle">說美國西餐難吃倒不全是假話...如果因此否定西餐,絕對以偏概全,...</a> <div class="accordion-content"> <div class="accordion-inner"> <p>說美國西餐難吃倒不全是假話,快餐漢堡包,三明治,粗製濫造,果腹填肚子,結果是才滿胃口,卻鎖眉頭。強調一遍,是美國快餐,如果在意大利,西班牙,希臘,快餐完全換了人間,有滋有味,風姿 搖曳,此處不多提。一些美國連鎖餐館也好不到哪裡,像Applebee’,Outback Steakhouse之類,真不如去中餐館吃一個魚腩豆腐煲,或者水煮牛肉,有肉沒肉,有一大碗湯汁,足以刺激舌尖的滿足感,胃不滿再叫 一份。但是,如果因此否定西餐,絕對以偏概全,好西餐館幾乎各地都有。我的經驗是繞開連鎖店,找土生土長的老字號,這些店常常有店家精心培植的花木,不國色天香,倒像茉莉,細碎不造勢,香氣滋養人心 。 </p> </div> </div> </div> <div class="accordion"> <a href="#" class="accordion-toggle">說美國西餐難吃倒不全是假話...如果因此否定西餐,絕對以偏概全,...</a> <div class="accordion-content"> <div class="accordion-inner"> <p>說美國西餐難吃倒不全是假話,快餐漢堡包,三明治,粗製濫造,果腹填肚子,結果是才滿胃口,卻鎖眉頭。強調一遍,是美國快餐,如果在意大利,西班牙,希臘,快餐完全換了人間,有滋有味,風姿 搖曳,此處不多提。一些美國連鎖餐館也好不到哪裡,像Applebee’,Outback Steakhouse之類,真不如去中餐館吃一個魚腩豆腐煲,或者水煮牛肉,有肉沒肉,有一大碗湯汁,足以刺激舌尖的滿足感,胃不滿再叫 一份。但是,如果因此否定西餐,絕對以偏概全,好西餐館幾乎各地都有。我的經驗是繞開連鎖店,找土生土長的老字號,這些店常常有店家精心培植的花木,不國色天香,倒像茉莉,細碎不造勢,香氣滋養人心 。 </p> </div> </div> </div> |