为了账号安全,请及时绑定邮箱和手机立即绑定

为什么写出来的颜色不显示?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

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

<title>borderyu 三角形</title>

<style type="text/css">

.triangle{width: 100px;height: 200px;

border:100px solid;

    border-color: red green red yellow;

}

</style>

</head>

<body>

<div class="triangle">三角形</div>

</body>

</html>


正在回答

3 回答

border-color的分号错误,是中文的分号

1 回复 有任何疑惑可以回复我~
#1

兰馨小驻 提问者

谢谢亲 问题 已经解决了
2017-08-03 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

为什么写出来的颜色不显示?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信