有过滤百度贴吧广告的css吗?

html-css017

有过滤百度贴吧广告的css吗?,第1张

@charset "utf-8"/* Name:百度贴吧 *//*去广告*/html>body>div#container.clearfix>div#frs_banner_ad,html>body>div#container.clearfix>div#aside,html>body>div[style="margin:0 0 5px 8pxwidth:84%"],html>body>div#container.clearfix>table#rightAd>tbody>tr>td{display: none !important}如有误杀请回复

我以前也是这样的,后来解决了!在记事本中输入如下代码 INPUT{ font-size: 10pt} TEXTAREA{ font-size: 10pt} BUTTON{ font-size: 10pt} 保存时,将.txt扩展名改为.css 然后打开浏览器 工具—Internet选项—辅助功能—使用样式编辑文档格式—导入刚才的文件——重启浏览器—ok.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/htmlcharset=utf-8" />

<title>无标题文档</title>

</head>

<body>

第一种实现方法:图片作为背景

<div style="width:110pxheight:110pxbackground-image:url(http://tb.himg.baidu.com/sys/portrait/item/b5ceb7e7d6d0b5c4bcc5c4af5f8909)position:relative">

<div style="width:83pxheight:20pxbackground-image:url(http://tieba.baidu.com/tb/static-money/mall/mall_5.gif)position:absolutebottom:0">

</div>

</div>

第二种实现方法:div使用绝对定位,图片作为div里的对象

<div style="width:110pxheight:110pxposition:absolutetop:180pxleft:0">

<img src="http://tb.himg.baidu.com/sys/portrait/item/b5ceb7e7d6d0b5c4bcc5c4af5f8909"/>

<div style=" position:absoluteleft:0bottom:0">

<img src="http://tieba.baidu.com/tb/static-money/mall/mall_5.gif" />

</div>

</div>

</body>

</html>

两种方法都可以,也可以自己再组合。

演示的图片是直接使用百度贴吧里的图片的,楼主可以换成自己的图片。

代码直接贴过去运行就可以了。