css position property
Translation results:
position
UK[pəˈzɪʃn] US[pəˈzɪʃən]
n. Position, direction; status, position; attitude; status
vt .Place; put... in a proper position; position...; garrison troops
css position propertysyntax
Function: The position attribute specifies the positioning type of the element.
Description: This attribute defines the positioning mechanism used to establish the layout of elements. Any element can be positioned, but absolute or fixed elements generate a block-level box, regardless of the type of the element itself. A relatively positioned element is offset from its default position in normal flow.
Note: All major browsers support the position attribute. The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).
css position propertyexample
<html> <head> <style type="text/css"> h2.pos_abs { position:absolute; left:100px; top:150px } </style> </head> <body> <h2 class="pos_abs">这是带有绝对定位的标题</h2> <p>下面的标题距离页面左侧 100px,距离页面顶部 150px。</p> </body> </html>
Click the "Run instance" button to view the online instance
Popular Recommendations
- Search- Search Insert Position
- Bitcoin Keeps Improving Its Position – $70K A Strong Possibility
- Crypto Whale With $26.47M WBTC Position Faces Potential Liquidation on Compound
- Bitcoin (BTC) Price Plunges 6.5% as Arthur Hayes Opens Short Position, Targets Sub-$50K
- Chainlink (LINK) Confirms Its Leadership Position in the Crypto Ecosystem by Displaying Exceptional Development Activity
- Dogecoin (DOGE) Price Prediction: DOGE Reclaims Position Above Downward Trend Line Indicating a Potential Trend Reversal