HTML DOM content အကျုံး

အသုံးပြုခြင်း နှင့် အသုံးပြုခြင်း

content အကျုံး ပြောင်းလဲသည်။

ပြောင်းလဲပုံ:

Object.style.content=value

အတ္ထုပတ္တိ

အတ္ထုပတ္တိ ဖော်ပြ
string text အကြောင်းအရာ သတ်မှတ်ထားပါသည်。
url url အကျုံး သတ်မှတ်ထားပါသည်。
  • counter(name)
  • counter(name, list-style-type)
  • counters(name, string)
  • counters(name, string, list-style-type)
 
attr(X) သတ်မှတ်ထားသော ရှိပါသော အရာများ အတွက် အကျုံး ပြောင်းလဲသည်။
open-quote  
close-quote  
no-open-quote  
no-close-quote  

အကြောင်းကြားချက် နှင့် ဖော်ပြချက်

ဖော်ပြချက်:ပြင်ပတ်နေသော အရာများအတွက် အရွယ်အချင်း ပို၍ ပိုသော အရွယ်အချင်း မရှိ သော အခါ အရာမှ အောက်ဆုံး အချင်းသို့ ပြောင်းလဲကြသည်။ ထို အခြေအနေ ပြင်ပတ်နေသော အရွယ်အချင်း အချင်းသို့ ပြောင်းလဲသည်。

ဖော်ပြချက်:ပြင်ပတ်နေသော အရာများ၏ အကြောင်းအရာ၊ နောက်ခံ အရေးအချိန်နှင့် အဆုတ်အနောက်ခံ ပြောင်းလဲကြသည်။ ပိုင်းဆိုင်ရာ အရာများ၏ အကြောင်းအရာ အဆုတ်အနောက်ခံ ပြောင်းလဲကြသည်။ ပြင်ပတ်နေသော အရာများ၏ အကြောင်းအရာ ပြင်ပတ်နေသော အရာများ၏ အနောက်ခံ ပြောင်းလဲကြသည်。

Example

This example sets the image to float on the left:

<html>
<head>
<script type="text/javascript">
function setFloatLeft()
{
document.getElementById("img1").style.cssFloat="left";
}
</script>
</head>
<body>
<img id="img1" src="logocss.gif" width="95" height="84" />
<p>This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.</p>
<form>
<input type="button" onclick="setFloatLeft()" value="Set image to float left" />
</form>
</body>
</html>