خرید بک لینک
I am adding an input of type number to a table cell
Code:

var element = document.createElement("input");
I have added height, width and font-size to the input, all taking affect.
I've tried
Code:

element.style.textAlign = "center";
and
Code:

element.setAttribute("text-align","center");
Neither is working. (Latest version of Chrome)
Am I missing something?

برچسب: نویسنده: آیلین رضوانی تاريخ: سه شنبه 19 دی 1396 ساعت: 17:24

صفحه بندی