Установить нестандартное свойство через js
Привет
Помогите на чистом js установить такое свойство: @keyframes 'move_left'{ from { margin-left: 130px; } to { margin-left: 0px; } } |
<script> function go(){ var a = document.createElement("style"); a.innerText = "body {color:red}"; document.head.appendChild(a); } </script> текст <input type="button" onclick="go()" value="стиль" /> |
Часовой пояс GMT +3, время: 06:48. |