请选择 进入手机版 | 继续访问电脑版

css应用行内样式案例

[复制链接]
查看2535 | 回复1 | 2019-8-21 20:11 | 显示全部楼层 |阅读模式
css应用行内样式案例

css应用行内样式案例

css应用行内样式案例

  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. </head>
  7. <body>
  8. <p style="background-color:#999900">行内元素,控制段落-1</p>
  9. <h2 style="background-color:#FF6633">行内元素,h2标题元素</h2>
  10. <p style="background-color:#999900">行内元素,控制段落-2</p>
  11. <strong style="font-size:30px;">行内元素,strong比em效果要强</strong>
  12. <div style="background-color:#66CC99; color:#993300;height:30px; line-height:30px;">行内元素,div块级元素</div>
  13. <em style="font-size:2em;">行内元素,em强调</em>
  14. </body>
  15. </html>
复制代码

自丢网 | 2019-8-22 07:35 | 显示全部楼层
自丢网真心不错,学习教程网。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-3-24