css继承和边框圆角 及 写三角形

1.     css可以继承的属性有哪些?

Font 系列 text系列 color line-height

2.        border-radius的值的问题

  四个值的顺序是左上右上右下左下。

3.        white-space 规定段落中的文本换不换行往往值是nowrap 不换行

4.        Word-wrap 属性允许长的内容可以自动换行  属性值是 break-word 允许默认是不允许

5.        写三角形

  div{

    width:0;

    height:0;

   border-top:5px  solid    transparent;

   border-right:5px  slid transparent;

     border-bottom:5px  slid blue;

        border-left:5px  slid transparent;

  }

  宽高必须是0

posted @ 2018-10-15 21:03  前端*迷途者  阅读(492)  评论(0)    收藏  举报