Little White Chicken's Question_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:09:37
Original
990 people have browsed it

What should I do if the inner border of the table is not displayed and only the outer border is displayed? I want to have an inner border

able style="width: 990px; text-align:center; border:1px solid #aac7cc;"

How else to set it?


Reply to discussion (solution)

Inner borders?
td’s border?

Yes, it looks like the original table

Directly use the HTML attribute border="1" of the table
or use the external style table td to define it, just When writing inline styles, TD cannot be controlled in the table.

I don’t quite understand. Can you give me the code directly? Directly use the table's HTML attribute border="1"
or use the external style table td to define it. Only write the inline style. The TD cannot be controlled in the table

 table{border-collapse:collapse;} td{bord:1px solid red;}
Copy after login


The color I used is red, you can set it yourself
or
<table cellpadding="1" cellspacing="0" border="0"> 这个 只是在表头上加 表格间距 如果要显示颜色 就需要给 整个 table 加边框色 td 设置成 不一样的颜色。
Copy after login

There is only one border

It seems that the boder can only set the outer border. If you want the inner border to appear, it must be embedded. Set it up

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