Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我将这些锚点放在母版页中的 contentplace 持有者之外时,如何将 css 类添加到内容页中的锚点标记...实际上我想在菜单栏中以不同的文本显示当前页面?
在内容页面中找到您的母版页控件,然后实现样式
HtmlAnchor Anchor= ( HtmlAnchor)Master.FindControl("HtmlAnchor"); Anchor.Style.Add("background-color", "red");