كائن HTML DOM HR
كائن الموارد البشرية
يمثل كائن HR عنصر HTML <hr>.
الوصول إلى كائن الموارد البشرية
يمكنك الوصول إلى عنصر <hr> باستخدام getElementById ():
مثال
var x = document.getElementById("myHR");
إنشاء كائن الموارد البشرية
يمكنك إنشاء عنصر <hr> باستخدام طريقة document.createElement ():
مثال
var x = document.createElement("HR");
خصائص كائن الموارد البشرية
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the alignment of a horizontal line |
color | Not supported in HTML5. Use style.color instead. Sets or returns the color of a horizontal line |
noshade | Not supported in HTML5. Sets or returns whether a horizontal line should render in one solid color (noshaded) |
size | Not supported in HTML5. Use style.height instead. Sets or returns the height of a horizontal line |
width | Not supported in HTML5. Use style.width instead. Sets or returns the width of a horizontal line |
الخصائص القياسية والأحداث
يدعم كائن HR أيضًا الخصائص والأحداث القياسية .
الصفحات ذات الصلة
مرجع HTML: علامة HTML <hr>