令人惊讶的是,这个答案很难找到答案:
我想更改标题中所有ActionLink的文本颜色.我试过这段代码:
CSS:
.navbar-brand { color: black }
.navbar-brand:visited { color: black }
.navbar-default-color { color: black }
Run Code Online (Sandbox Code Playgroud)
CSHTML:
@Html.ActionLink("Home", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Senders", "Index", "Senders", new { @class = "navbar-brand" })</li>
<li>@Html.ActionLink("Responders", "Index", "Responders", new { @class = "navbar-brand" })</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
我标题中的所有ActionLink都继承了navbar-brand的样式.但只有Home ActionLinks才会改变它的文字颜色.(见图) http://i.imgur.com/L0HjMk2.png
请注意,ActionLinks 做实际上继承文字大小和字体.除了血腥的文字颜色之外的一切!
如何使用CSS更改其他ActionLinks的丑陋灰色?
抱歉愚蠢的问题,但为什么这不起作用?
我刚刚在我的网站上更新了EPiServer.随着更新来了新的TinyMCE.我有一个关于如何更改格式列表内容的问题.
昨天发布了这个很好的指南(https://world.episerver.com/documentation/developer-guides/CMS/add-ons/customizing-the-tinymce-editor-v2/),它展示了如何做很多事情.但我需要知道的是如何调整格式列表的内容.例如,<h1>
从format
下拉列表中删除选项.
这是在JavaScript中的方法:https: //www.tinymce.com/docs/configure/editor-appearance/#menu
tinymce.init({
selector: 'textarea', // change this value according to your HTML
menu: {
format: {title: 'Format', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat'}
}
});
Run Code Online (Sandbox Code Playgroud)
但是我如何在TinyMCE的EPiServer C#版本中执行此操作?
toolbarSmall
是我的cusom配置,它现在看起来像这样.
public void ConfigureContainer(ServiceConfigurationContext context)
{
var toolbarsSmall = new[]
{
"epi-link unlink | cut copy paste pastetext pasteword searchreplace | table",
"bold | bullist numlist hr | formatselect undo redo | | fullscreen …
Run Code Online (Sandbox Code Playgroud)