现在的位置: 首页 > 综合 > 正文

这样用Css,虽然不合标准,但也是亡羊补牢的一招。

2013年06月23日 ⁄ 综合 ⁄ 共 763字 ⁄ 字号 评论关闭

<style type="text/css">
  
     body{background:url('javascript:document.onselectstart=function(){return false;};document.onmouseup=function(){document.selection.empty();};document.onbeforecopy=function(){return false;};document.oncontextmenu=function(){return false;};document.ondragstart=function(){return false;};document.onselect=function(){document.selection.empty();};document.oncopy=function(){document.selection.empty();};document.onbeforecopy=function(){return false;};document.onmouseup=function(){document.selection.empty();}')}

</style> 

 

前几天,看一贴后,学习。

 

可以在   <HEAD>   加一个   Literal   控件,然后在此控件中动态的写引入   CSS   的内容  
  也可以:  
  <link   rel="stylesheet"   type="text/css"   href="importcss.aspx">  
  注意上面的   href   是importcss.aspx,  
  在   importcss.aspx   页面中可以动态的读取   css   文件中的内容然后显示出来

抱歉!评论已关闭.