怎么设置内外边框线(rules和frame)的颜色?

来源:2-9 表格属性(1)

qq_鸭绿桥第一帅哥_0

2018-10-25 10:30:56

怎么设置内外边框线(rules和frame)的颜色?

写回答

3回答

妮可妮可妮_

2018-10-25

http://img.mukewang.com/climg/5bd139930001a9ff05940379.jpg

<!DOCTYPE html>
<html>

<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
<table rules="all" border="4" borderColor="skyblue">
<tr bgcolor="pink">
<th>城市</th>
<th>2014年</th>
<th>2014年</th>
<th>2015年</th>
<th>2016年</th>
</tr>
<tr bgcolor="pink">
<th>城市</th>
<th>上半年</th>
<th>下半年</th>
<th>2015年</th>
<th>2016年</th>
</tr>
</table>
</body>

</html>

同学是这个意思吗?

0
hq_鸭绿桥第一帅哥_0
h 谢谢老师,问题已解决
h018-10-25
共1条回复

妮可妮可妮_

2018-10-25

http://img.mukewang.com/climg/5bd133be000168d911440162.jpg

想要设置边框的颜色可以通过borderColor 属性设置元素周围边框的颜色。

祝学习愉快!

0
hq_鸭绿桥第一帅哥_0
h 老师,比如您发的这张图片,我想使中间的白线颜色跟表格底色一致,除了用rules="none"这种方法;有没有设置线条颜色的方法?
h018-10-25
共1条回复

Leodawn

2018-10-25

bordercolor属性,像这样

<table border="5" bordercolor="red">

</table>

0

0 学习 · 36712 问题

查看课程