zoukankan      html  css  js  c++  java
  • CSS CURSOR属性

    cursor -- 定义鼠标样式

    • 取值: [ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress ] ] | inherit
      • [<uri> ,]*: 根据用户定义的资源显示
      • auto: 正常鼠标
      • crosshair: 十字鼠标
      • default: 默认鼠标
      • pointer: 点状鼠标
      • move: 移动鼠标
      • e-resize,ne-resize,nw-resize,n-resize,se-resize,sw-resize,s-resize,w-resize: 改变大小鼠标
      • text: 文字鼠标
      • wait: 等待鼠标
      • help: 求助鼠标
      • progress: 过程鼠标
      • inherit: 继承
    • 引用网址:http://www.dreamdu.com/css/property_cursor/
    • 初始值: auto
    • 继承性: 是
    • 适用于: 所有元素
    • cursor: 中文"鼠标"的意思.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
            <title>CSS cursor 属性示例 -- </title><script type="text/javascript" src="/js.js"></script>        
            <style type="text/css" media="all">
                p#auto
                { 
                    cursor: auto;
                }
            
                p#crosshair
                { 
                    cursor: crosshair;
                }
            
                p#default
                { 
                    cursor: default;
                }
            
                p#pointer
                { 
                    cursor: pointer;
                }
            
                p#move
                { 
                    cursor: move;
                }
            
                p#e-resize
                { 
                    cursor: e-resize;
                }
            
                p#ne-resize
                { 
                    cursor: ne-resize;
                }
            
                p#nw-resize
                { 
                    cursor: nw-resize;
                }
            
                p#n-resize
                { 
                    cursor: n-resize;
                }
            
                p#se-resize
                { 
                    cursor: se-resize;
                }
            
                p#sw-resize
                { 
                    cursor: sw-resize;
                }
            
                p#s-resize
                { 
                    cursor: s-resize;
                }
            
                p#w-resize
                { 
                    cursor: w-resize;
                }
            
                p#text
                { 
                    cursor: text;
                }
            
                p#wait
                { 
                    cursor: wait;
                }
            
                p#help
                { 
                    cursor: help;
                }
            
                p#progress
                { 
                    cursor: progress;
                }
            
                p
                {
                    border: 1px solid black;
                    background: lightblue;
                }
            </style>
        </head>
        <body>
            <p>梦之都 <a href="http://www.dreamdu.com/css/">CSS教程</a>,<strong><a href="http://www.dreamdu.com/css/property_cursor/">cursor</a></strong>示例.把鼠标移动到每个蓝色方框上,看看效果.</p>
            <p id="auto">梦之都 XHTML 教程,auto正常鼠标</p>
            <p id="crosshair">梦之都 CSS 教程,crosshair十字鼠标</p>
            <p id="default">梦之都 XHTML 教程,default默认鼠标</p>
            <p id="pointer">梦之都 CSS 教程,pointer鼠标</p>
            <p id="move">梦之都 XHTML 教程,move移动鼠标</p>
            <p id="e-resize">梦之都 CSS 教程,e-resize鼠标</p>
            <p id="ne-resize">梦之都 XHTML 教程,ne-resize鼠标</p>
            <p id="nw-resize">梦之都 CSS 教程,nw-resize鼠标</p>
            <p id="n-resize">梦之都 XHTML 教程,n-resize鼠标</p>
            <p id="se-resize">梦之都 CSS 教程,se-resize鼠标</p>
            <p id="sw-resize">梦之都 XHTML 教程,sw-resize鼠标</p>
            <p id="s-resize">梦之都 CSS 教程,s-resize鼠标</p>
            <p id="w-resize">梦之都 XHTML 教程,w-resize鼠标</p>
            <p id="text">梦之都 CSS 教程,text文字鼠标</p>
            <p id="wait">梦之都 XHTML 教程,wait等待鼠标</p>
            <p id="help">梦之都 CSS 教程,help求助鼠标</p>
            <p id="progress">梦之都 XHTML 教程,progress过程鼠标</p><div style="margin-top:5em"><form method="post" action="#"><input type="button" name="dreamduinput" id="dreamduinput" style="border- 1px;color: #fff;background-color: #4289cb;" value="----上面的内容就对应着下面的代码,修改代码,并点我,查看一下效果吧!----" onClick="RunCode(dreamdutest)"><br /><textarea name="dreamdutest" id="dreamdutest" rows="20" cols="120">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
    &lt;html&gt;
        &lt;head&gt;
            &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;
            &lt;title&gt;CSS cursor 属性示例&lt;/title&gt;        
            &lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;
                p#auto
                { 
                    cursor: auto;
                }
            
                p#crosshair
                { 
                    cursor: crosshair;
                }
            
                p#default
                { 
                    cursor: default;
                }
            
                p#pointer
                { 
                    cursor: pointer;
                }
            
                p#move
                { 
                    cursor: move;
                }
            
                p#e-resize
                { 
                    cursor: e-resize;
                }
            
                p#ne-resize
                { 
                    cursor: ne-resize;
                }
            
                p#nw-resize
                { 
                    cursor: nw-resize;
                }
            
                p#n-resize
                { 
                    cursor: n-resize;
                }
            
                p#se-resize
                { 
                    cursor: se-resize;
                }
            
                p#sw-resize
                { 
                    cursor: sw-resize;
                }
            
                p#s-resize
                { 
                    cursor: s-resize;
                }
            
                p#w-resize
                { 
                    cursor: w-resize;
                }
            
                p#text
                { 
                    cursor: text;
                }
            
                p#wait
                { 
                    cursor: wait;
                }
            
                p#help
                { 
                    cursor: help;
                }
            
                p#progress
                { 
                    cursor: progress;
                }
            
                p
                {
                    border: 1px solid black;
                    background: lightblue;
                }
            &lt;/style&gt;
        &lt;/head&gt;
        &lt;body&gt;
            &lt;p id=&quot;auto&quot;&gt;梦之都 XHTML 教程,auto正常鼠标&lt;/p&gt;
            &lt;p id=&quot;crosshair&quot;&gt;梦之都 CSS 教程,crosshair十字鼠标&lt;/p&gt;
            &lt;p id=&quot;default&quot;&gt;梦之都 XHTML 教程,default默认鼠标&lt;/p&gt;
            &lt;p id=&quot;pointer&quot;&gt;梦之都 CSS 教程,pointer鼠标&lt;/p&gt;
            &lt;p id=&quot;move&quot;&gt;梦之都 XHTML 教程,move移动鼠标&lt;/p&gt;
            &lt;p id=&quot;e-resize&quot;&gt;梦之都 CSS 教程,e-resize鼠标&lt;/p&gt;
            &lt;p id=&quot;ne-resize&quot;&gt;梦之都 XHTML 教程,ne-resize鼠标&lt;/p&gt;
            &lt;p id=&quot;nw-resize&quot;&gt;梦之都 CSS 教程,nw-resize鼠标&lt;/p&gt;
            &lt;p id=&quot;n-resize&quot;&gt;梦之都 XHTML 教程,n-resize鼠标&lt;/p&gt;
            &lt;p id=&quot;se-resize&quot;&gt;梦之都 CSS 教程,se-resize鼠标&lt;/p&gt;
            &lt;p id=&quot;sw-resize&quot;&gt;梦之都 XHTML 教程,sw-resize鼠标&lt;/p&gt;
            &lt;p id=&quot;s-resize&quot;&gt;梦之都 CSS 教程,s-resize鼠标&lt;/p&gt;
            &lt;p id=&quot;w-resize&quot;&gt;梦之都 XHTML 教程,w-resize鼠标&lt;/p&gt;
            &lt;p id=&quot;text&quot;&gt;梦之都 CSS 教程,text文字鼠标&lt;/p&gt;
            &lt;p id=&quot;wait&quot;&gt;梦之都 XHTML 教程,wait等待鼠标&lt;/p&gt;
            &lt;p id=&quot;help&quot;&gt;梦之都 CSS 教程,help求助鼠标&lt;/p&gt;
            &lt;p id=&quot;progress&quot;&gt;梦之都 XHTML 教程,progress过程鼠标&lt;/p&gt;
    
        &lt;/body&gt;
    &lt;/html&gt;</textarea></form></div><blockquote>
    <script src="/inc/v1_topad.js" type="text/javascript"></script>
    <br />
    <script type="text/javascript"><!--
    google_ad_client = "pub-1380153598658129";
    /* 728x90, 创建于 08-11-8 */
    google_ad_slot = "9243519556";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
    </blockquote>
    <script type="text/javascript" id="bdshare_js" data="type=slide&amp;img=0&amp;uid=797516" ></script><script type="text/javascript" id="bdshell_js"></script><script type="text/javascript">document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();</script><!-- Baidu Button END --><script type="text/javascript">var _gaq = _gaq || [];_gaq.push(['_setAccount', 'UA-556982-2']);_gaq.push(['_trackPageview']);(function(){var ga = document.createElement('script');ga.type = 'text/javascript'; ga.async = true;ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga, s);})();</script><script type="text/javascript">var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0b5059fb2e0522719e25d555c50c97ac' type='text/javascript'%3E%3C/script%3E"));</script>    </body>
    </html>
  • 相关阅读:
    使用数字进行字符遍历
    注意:C++中double的表示是有误差的
    ER模型到关系模型的转换规则
    SQL中查询优化的主要策略
    分解成3NF保持函数依赖且为无损连接的算法
    函数依赖集闭包、属性集闭包、超键、候选键和最小函数依赖集的求法。
    分解成3NF的保持函数依赖的分解算法:
    模式分解是否为无损连接的判断方法
    字符串处理技巧
    sort+结构体实现二级排序
  • 原文地址:https://www.cnblogs.com/aomi/p/3459769.html
Copyright © 2011-2022 走看看