Extract the current DOM and print it as a string, with styles intact

前端 未结 8 1634
执笔经年
执笔经年 2020-12-07 08:19

I\'d like to be able to take my DOM, as is, and convert it to a string. Let\'s say I open up the inspector and make a change to the margin-left property of a particular ele

8条回答
  •  独厮守ぢ
    2020-12-07 09:23

    Internet Explorer -> Developer Tools -> DOM Explorer

    Select element and right click -> "Copy element with styles".

提交回复
热议问题