掌握CSS网页布局技术,网页边框效果的定义是基础内容,其中也涉及到CSS盒模型知识以及CSS属性简写知识。
相关文章阅读:CSS设计网页时的一些常用规范
实例一:
CSS:
p {padding: 15px; border: 1px solid black; }
h5{padding: 0px; border: 1px solid red;}
XHTML:
pThis is a paragraph that has a padding of 15 pixels on every side: top, right, bottom, and left./p
h5This header has no padding, which places the text right against the border!/h5
效果如图:
[ 查看全文 ]