CSSStyleDeclaration getPropertyPriority() အမှု
အခြေခံ နှင့် အသုံးပြုခြင်း
getPropertyPriority()
အမှား အပိုင်း အရ သတ်မှတ်ထားသော CSS အကိုယ်အချုပ် အရ "important!" အဆင့်အတိုင်း ရှိသလား အသိပေးပါ
အမှား အမှ�ထမ်း အပိုင်း အရ "important!" အဆင့်အတိုင်း ပြင်ဆင်ခဲ့ပါ
အမှား အမှုထမ်း အပိုင်း အရ အဆင့်အတိုင်း မပြင်ဆင်ခဲ့ပါ
အကျိုးသတ်မှတ်
အရောင် အကိုယ်အချုပ် အရ "important!" အဆင့်အတိုင်း ကို ရှိသလား အသိပေးပါ:
var declaration = document.styleSheets[0].cssRules[0].style; var priority = declaration.getPropertyPriority("color"); alert(priority);
ပြောင်းလဲခြင်း
object.getPropertyPriority(propertyname)
参数
参数 | 描述 |
---|---|
propertyname | 必需。字符串,表示要检查的属性的名称。 |
技术细节
DOM 版本: | CSS Object Model |
---|---|
返回值: | 表示优先级的字符串,如果不存在则为空字符串。 |
ဘွတ်စာ
ချူးမီ | ဆင်ဖျား | ဖက်ဒရာ | ဆင်ဖျား | အိုပီရာ |
---|---|---|---|---|
ချူးမီ | ဆင်ဖျား | ဖက်ဒရာ | ဆင်ဖျား | အိုပီရာ |
ထောက်ပံ့ | 9.0 | ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ |