CSS元素分类_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:19
Original
1127 people have browsed it


ps:【1】两种元素区别在于能不能设置宽width和高height,是不是独占一行

   【2】把块元素转为内联元素,也可以把内联元素转化为块元素。

   如p默认是p{display:block;},则可以这样p{display:inline;}转化为内联元素,反之亦然。

特例:图片img是像块元素的内联元素,可以设置width和height(自己的属性),但是不是独占一行。

    【3】思考题:可以使内联元素浮动,就能使宽高起作用。


版权声明:本文为博主原创文章,未经博主允许不得转载。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!