<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 文件中的内容然后显示出来