javascript listStylePosition attribute
Translation results:
list
英[lɪst] 美[lɪst]
n.List, catalog; slant; edge of cloth, end of cloth; narrow strip
vt. List, include; compile... into a table; record in the list
vi. List on the table
Third person singular: lists Plural: lists Present participle: listing Past Formula: listed past participle: listed
style
英[staɪl] 美[staɪl]
n. Style; style; fashion; instrument, Taste
vt. To design; to name; to shape...
vi. To conform to popular styles; to make decorative paintings with a carving knife
Third person singular: styles Plural: styles now Participle: styling Past tense: styled Past participle: styled
position
英[pəˈzɪʃn] 美[pəˈzɪʃən]
n. Position, orientation; Status, position; attitude; state
vt. Place; put... in the appropriate position; position...; garrison the army
Third person singular: positions Plural: positions Present participle: positioning Past tense : positioned past participle: positioned
javascript listStylePosition attributesyntax
Function: Locate the list item mark in the list.
Syntax: Object.style.listStylePosition=inside|outside
javascript listStylePosition attributeexample
<html> <head> <script type="text/javascript"> function changeList() { document.getElementById("ul1").style.listStylePosition="inside"; } </script> </head> <body> <ul id="ul1"> <li>Coffee</li> <li>Tea</li> <li>Water</li> <li>Soda</li> </ul> <input type="button" onclick="changeList()" value="Change list-item marker position" /> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance