如何删除服务器生成的两个CSS? [英] How to remove the clear both CSS generated by the Server ?

查看:70
本文介绍了如何删除服务器生成的两个CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在为Dotnetnuke使用Cartviper模块,这是一个已编译的模块。无法访问其代码。

在产品模板中,我可以自定义任何样式。但是,在每个产品的最后,他们添加另一个标签< div style =clear:both;> < / DIV> 。这可以防止流布局和每行中显示的产品。我无法编辑生成此div标签的代码。任何人都可以为此解决这个问题。它很紧急。 :(



这是服务器在列表中每个产品末尾生成的标签..



 <   div     id   =  dnn_ctr436_Catalog_productList_ctl24_pnlProductDetails >  

< div style = clear: > < / div >

< / div >

解决方案

尝试使用Jquery删除样式



 


('div [style * = both]')。remove();


Hi,

I am using Cartviper module for Dotnetnuke, and that's a compiled module. Can't access its code.
In the Product Templates, I can customize any style. But, At the end of each product, They add another tag <div style = "clear:both;"> </div> . This prevents the flow layout, and the products shown in each row. I can't edit the code generating this div tag. Can anybody tell a work around for this.. Its urgent. :(

This is the tag generated by the server at the end of each product in list..

<div id="dnn_ctr436_Catalog_productList_ctl24_pnlProductDetails">
					
      <div style="clear:both"></div>
    
</div>

解决方案

Try to remove the Style using Jquery


('div[style*=both]').remove();


这篇关于如何删除服务器生成的两个CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆