产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » 如何修改模块内边距?
chinadjskc - 2013/1/17 19:43:30
模块调用的时候想让边距为零,在哪里改样式?
xiyou - 2013/1/18 10:06:25
样式文件(/e/templates/风格/lanmu.css)里面的
.module_content{}
chinadjskc - 2013/1/18 10:41:47
回复 2楼xiyou的帖子

但是这个改了所有的模块都改变了,只想改某个做选项卡的自定义模块的CSS ,下面红色的代码能否让每个模块自定义啊?

<% @ Control language="c#" Inherits="PageAdmin.module_zdymodel"%>
<% @ Import NameSpace="System.Data"%>
<% @ Import NameSpace="System.Data.OleDb"%>
<asp:PlaceHolder id="style1" runat="server" visible="false"><%=Module_StartHtml%>
<div id="module_<%=Module_Id%>" class="module_box<%=Layout%>" style="width:<%=Module_Width%>;<%=Module_box_style%>">
<div class="module_box_1<%=Layout%>" style="<%=Module_box_1_style%>">
<%if(Title_Show=="1"){%>
<div class="module_title" style="<%=Module_titlebox_style%>"><span class="module_sign" style="<%=Module_title_style%>"><%=Module_Title%></span><span class="module_more" style="<%=Module_more_style%>"><%=More_Url%></span></div>
<%}if(Module_Header!=""){%><%=Module_Header%><%}%>
<div id="module_content_<%=Module_Id%>" class="module_content" style="<%=Module_content_style%>">
<%conn.Open();%>{pa:Model_Content}<%conn.Close();%>
</div><div class="module_footer"><span class="l"></span><span class="r"></span></div>
</div>
</div><%=Module_EndHtml%></asp:PlaceHolder>
<asp:PlaceHolder id="style2" runat="server" visible="false"><%conn.Open();%>{pa:Model_Content}<%conn.Close();%></asp:PlaceHolder>
xiyou - 2013/1/18 11:05:13
可以用局部样式设置
新建一个模块样式,然后在内容区样式里面写:padding:0px
然后点击你的模块内容设置,在相关参数的模块风格里选上你新建的样式。
chinadjskc - 2013/1/18 19:49:06
谢谢xiyou 解决问题思路果然完备:strong: ,已经解决了:
1
查看完整版本: 如何修改模块内边距?