Home > Web Front-end > JS Tutorial > body text

网页开发中的容易忽略的问题 javascript HTML中的table_javascript技巧

WBOY
Release: 2016-05-16 18:54:13
Original
963 people have browsed it

table.rows集合中是cell对象
cell.innerHTML = "

123"
在table的innerHTML中是123

cell.innerHTML = "123"
在table的innerHTML中是123

所以设置cell.innerHTML不用再加

另外今天在厕所里看我以前买的书无意看到的

在里面的内容是空的话会造成cell边框不显示
所以就经常使用 

其实不用这样
在table的css中设置border-collapse: collapse;就可以跟 显示一样了
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!