كائن HTML DOM Ul
كائن Ul
يمثل كائن Ul عنصر HTML <ul>.
الوصول إلى كائن Ul
يمكنك الوصول إلى عنصر <ul> باستخدام getElementById ():
مثال
var x = document.getElementById("myUL");
قم بإنشاء كائن Ul
يمكنك إنشاء عنصر <ul> باستخدام طريقة document.createElement ():
مثال
var x = document.createElement("UL");
خصائص كائن Ul
Property | Description |
---|---|
compact | Not supported in HTML5. Use
style.lineHeight instead. Sets or returns whether the unordered list should render smaller than normal, or not |
type | Not supported in HTML5. Use
style.listStyleType instead. Sets or returns the value of the type attribute of an unordered list |
الخصائص القياسية والأحداث
كائن Ul يدعم الخصائص والأحداث القياسية .
الصفحات ذات الصلة
دروس HTML: قوائم HTML
مرجع HTML: علامة HTML <ul>