- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Episerver 总是将共享 block 包装在一个标签中。我想摆脱这个。因此,如果在我的 LinkBlock 中有一个只有
的模板 <a href="#"
>链接</a
>
我不会得到一个
<div
> <a href="#"
>链接</a
> </div
>
在用户 View 中。
如果这不可能,我该如何更改 <div
> 到任何其他标签,或在其上放置一个 CssClass。就像在非共享 block 中是可能的:
<EPiServer:Property runat="server" PropertyName="RightContentArea" CustomTagName="aside" CssClass="column-2 sidebar"
> </EPiServer:Property
>
最佳答案
我相信是 ContentArea 属性的渲染在它包含的 block 周围添加了 div 标签。
EPiServer 建议 in order to preserve the editing functionality of the block elements themselves they need to have the div around them .
一个可能的解决方案可能是您自己做 custom rendering of content areas ,但根据您使用的 block 模板的种类,编辑工作可能会很棘手。链接中的示例用于渲染多个相同类型的 block 。
关于block - 移除 EPiServer 7 Shared Block 周围生成的 <div>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14361347/
我正在做一个项目,我的 android 在这个项目中作为一个网络服务器工作;输入带端口号的 IP 地址,打开 Web 界面,用户可以将文件上传到手机。我想在 Web 界面上显示一些图片,以便我们的界面
我是一名优秀的程序员,十分优秀!