0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

画像のプレビュー機能で画像のサイズ調整を実現

Posted at

プレビュー機能の実装時javascriptで画像にサイズを調整する以外に方法が思いつかずにいてやり方も分からずに作業が止まってました。
しかし画像のサイズの調整についてはcssにさせればいいと言うとに気が付いて
setAttributeを使って取得した画像URL情報を突っ込んだimg要素にidの属性も突っ込んで無事解決しました!。
cssって最強ですね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?