css学习中遇到的一些常用属性设置

①块状元素和行状元素的转换

可以在其中设置display:xxx

xxx=inline 设置为行状元素

xxx=block 设置为块状元素

xxx=inline-block  行内块元素,就是把块状元素设置成一行一行的显示

②text-decoration: none,就是将超链接下的那根线给去掉

③border-bottom: solid 1px #EEEEEE;这里是设置边框底线的属性、大小和颜色

④float:right  float:left   设置浮动属性,向左向右浮动

⑤list-style: none; 这里是将列表标签前面的符号去掉,可以通过list-style来设置自己想要的符号

例如:list-style-image: url(img/nav_item_v_hover.jpg);

⑥text-align: center;使文本进行排版,这里center表示居中

⑦border-radius: 25px;圆角属性

之后有遇到一些再进行编辑

猜你喜欢

转载自blog.csdn.net/qq_41061437/article/details/82185547