我无法为此内容创建 CSS 边框
I cant create a CSS border for this content
我正在为我的 blog/website 使用 WordPress。在常规页面上,我创建的边框很好。在博客模板上,我似乎无法弄清楚如何在框周围加边框。
这是我目前所拥有的
#secondary{
background-color: white;
left: 15px;
border-width: 15px;
border-color: green;
}
(绿色可见)
我邀请您观看我的直播 page,这样您就可以评估我的 CSS 之类的东西。我定制的sheet是最后一个标题为style.css
#secondary{
background-color: white;
left: 15px;
border: 15px solid green;
}
您缺少 border-style
样式(即 solid
部分),为了简洁起见,可以将其缩短为上述语法。
您是否尝试过以下方法:
border: 15px solid green;
这里是 link 如果您需要边框属性的完整列表,http://www.w3schools.com/css/css_border.asp
你忘了border-style
#secondary {
background-color: white;
left: 15px;
border-style: solid;
border-width: 15px;
border-color: green;
}
或者您可以使用 shorthand 属性:border: 15px solid green;
我正在为我的 blog/website 使用 WordPress。在常规页面上,我创建的边框很好。在博客模板上,我似乎无法弄清楚如何在框周围加边框。 这是我目前所拥有的
#secondary{
background-color: white;
left: 15px;
border-width: 15px;
border-color: green;
}
(绿色可见) 我邀请您观看我的直播 page,这样您就可以评估我的 CSS 之类的东西。我定制的sheet是最后一个标题为style.css
#secondary{
background-color: white;
left: 15px;
border: 15px solid green;
}
您缺少 border-style
样式(即 solid
部分),为了简洁起见,可以将其缩短为上述语法。
您是否尝试过以下方法:
border: 15px solid green;
这里是 link 如果您需要边框属性的完整列表,http://www.w3schools.com/css/css_border.asp
你忘了border-style
#secondary {
background-color: white;
left: 15px;
border-style: solid;
border-width: 15px;
border-color: green;
}
或者您可以使用 shorthand 属性:border: 15px solid green;