如何在使用<div>创建表时在<ul> <li>中使用colspan

I am trying to create a table using <ul> <li> <div>. i am facing problem for using colspan. i am trying to create a dynamic pricing table but facing problem while colspan the table while design it with help of <ul> <li> <div>. I am also using if else condition for fetching values from database

Colspan is only specified for td tags so you can't use it with other elements. It sounds like you are creating a "real" table here, meant to show data and to compare it. In this case it is semantically right to use the table element.