在跨度问题内嵌套div [英] nesting div within span problem

查看:130
本文介绍了在跨度问题内嵌套div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

div是一个块元素,span是一个内联元素,所以根据xhtml 1.0验证它是不正确的,但仍然有几个网站使用这种方法进行样式设计是可以的吗?或者它会导致一些问题,请帮助我? 解决方案

这是不正确的+你永远不需要这样做=>因此<强>永远不应该。


div is a block element and span is an inline element so according to xhtml 1.0 validation it is not right but still several websites uses this method for styling is it all right ? or it will cause some problem please help me ?

解决方案

It is not right + You never need to do this => thus never should.

这篇关于在跨度问题内嵌套div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆