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.
解像度に応じてデータ属性を変更する方法を探しています。たとえば、解像度が小さい場合はデータの最小高さを小さくします。
これはどのように達成できますか?御時間ありがとうございます!
または.data()と一緒に使用できます。$(document).height()$(window).height()
.data()
$(document).height()
$(window).height()
$('selector').data('min-height',$(document).height());