HTML DOM Div ఆబ్జెక్ట్

  • 上一页
  • 下一页

Div Object

Div Object represents HTML <div> element.

Access Div Object

You can use getElementById() to access <div> element:

var x = document.getElementById("myDIV");

Try it yourself

Create Div Object

You can use document.createElement() method to create <div> element:

var x = document.createElement("DIV");

Try it yourself

Div Object Properties

属性 描述
align

HTML5 中不支持。请改用 style.textAlign

设置或返回

元素的 align 属性值。

标准属性和事件

Div 对象支持标准属性事件

相关页面

HTML 教程:హెచ్టిఎంఎల్ బ్లాక్

HTML 参考手册:హెచ్టిఎంఎల్ <div> టాగ్

  • 上一页
  • 下一页