css继承和边框圆角 及 写三角形
生活随笔
收集整理的这篇文章主要介绍了
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
转载于:https://www.cnblogs.com/Shinigami/p/9794698.html
总结
以上是生活随笔为你收集整理的css继承和边框圆角 及 写三角形的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 动手动脑随机数篇
- 下一篇: antd Tree组件中,自定义右键菜单