WebSite X5Help Center

 
Stephen C.
Stephen C.
User

Html button  en

Автор: Stephen C.
Просмотрено 366, Подписчики 1, Размещенный 0  

I am inserting some HTML to create a button thus:

<input type="button" value="Refresh page" onclick="location.reload(true);" />

How can I set the color, background-color, font etc?

Размещено
4 Ответы - 1 Корректно
Daniel W.
Daniel W.
User
Лучший пользователь месяца DEЛучший пользователь месяца EN

Here an example:

<input type="button" style="background-color: green; color:yellow; font-size: 24px;" value="Refresh page" onclick="location.reload(true);" />

-----

Читать больше
Размещено От Daniel W.
Daniel W.
Daniel W.
User
Лучший пользователь месяца DEЛучший пользователь месяца EN

Another example:

<input type="button" style="padding: 20px; border-radius: 10px; background-color: green; color:yellow; font-size: 24px;" value="Refresh page" onclick="location.reload(true);" />

-----

Читать больше
Размещено От Daniel W.