Css row elements within the block-level elements and summary

Block-level elements

<address>,  <button>,  <caption>,  <dd>,  <del>,  <div>,  <dl>,  <dt>,  <form>,  <h1>--<h6>,  <iframe>,  <li>

<object>,  <ol>,  <p>,  <table>,  <tbody>,  <td>,  <th>,  <thead>,  <tr>,  <ul>  

Row element

<a>,  <b>,  <br>,  <button>,  <del>,  <em>,  <i>,  <iframe>,  <img>,  <input>,  <label>,  <strong>,  

Inline elements, not the replacement element width property will not apply, for example, inline elements <a> applied width: 200px, no matter what you will not see results appear.

Inline elements, not the replacement element height property does not apply, but the height can be specified by line-height.

Inline elements you can set the padding to it. But there are only padding-left and padding-right have the effect, no padding-top and padding-bottom.

margin properties padding properties and also as effective for about inline elements. Invalid down.

 

 

Guess you like

Origin www.cnblogs.com/danruoyanyun/p/11359921.html