Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
高さが 100px の div が 1 つあり、ページの読み込みに隠されています。別のリンクをクリックすると、show() だけを使用して突然その高さの半分 (50px) を表示し、残りの 50px をスライドダウン効果で表示する必要があります。どのように可能ですか、何か助けはありますか?
どういうわけかこのように:
$("#linkClick").click(function() { $("#yourDiv").css("height", "50px"); $("#yourDiv").show(); $("#yourDiv").slideDown(); });
それが役に立てば幸い。