<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>css的继承性</title> <style> body{text-decoration:underline; font-size: 30px;color:red; font-weight: bold; } </style> </head> <body> 继承性:从自己开始到自己后代最小的元素 color text-开头的,line-开头的 font-开头的 都是继承的 这些关于文字样式的都能继承 所以关于盒子的 定位的,布局的都是不能继承的 <div>我是div <div>我也是div <p>我是什么颜色</p> </div></div> </body> </html>
css的继承性--有哪些属性继承
猜你喜欢
转载自blog.csdn.net/xm1037782843/article/details/53384568
今日推荐
周排行