我是 css 新手,我正在尝试找出一种方法将图例标签合并为我的页面的标题
目前我的母版页由一个字段设置样式:
fieldset.field_set_main
{
border-bottom-width:50px;
border-top-width:100px;
border-left-width:30px;
border-right-width:30px;
margin:auto;
width:1300px;
height:700px;
padding:0px 0px 0px 0px;
border-color:Black;
border-style:outset;
display:table;
}
legend.header
{
text-align:right;
}
<fieldset class="field_set_main" >
<legend class="header">
buy for you
</legend>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</fieldset>
图例标题以其自己的背景颜色“白色”出现,如果我将其设置为黑色,则只有标题文本本身“为你购买”得到黑色,它在我的边框右侧显示为一个白色框,我正在寻找图例的 css 样式显示为页面的标题(背景颜色与字段集的背景颜色相同,文本的前景色不同)。
fieldset 中是否有页脚元素,我希望标题也出现在页面底部。
- 有用的 css 样式有什么好的资源吗?特别是对于具有主要字段集样式的母版页?