您的位置:首页 > Web前端 > CSS

css基础 cursor:default/pointer/move/text 鼠标样式

2018-02-11 15:12 786 查看
礼悟:
   公恒学思合行悟,尊师重道存感恩。叶见寻根三返一,江河湖海同一体。
虚怀若谷良心主,愿行无悔给最苦。读书锻炼养身心,诚劝且行且珍惜。

   ide:visual studio 2017  
browser:Chrome
os:win7


代码

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="给最苦 https://www.cnblogs.com/jizuiku https://github.com/GratefulHeartCoder"/>
<title></title>
<style type="text/css">
li {
margin:20px;
}
li:nth-child(2n) {
background-color:green;
}
li:nth-child(2n+1) {
background-color:red;
}
</style>
</head>
<body>
<ul>
<li style="cursor:default;">default</li>
<li style="cursor:pointer">pointer</li>
<li style="cursor:move">move</li>
<li style="cursor:text">text</li>
</ul>
</body>
</html>


效果



CSS3优秀,值得学习。
学习资源: www.w3cschool.cn + itcast和itheima视频库 + 清净的心地。
如果您有公开的资源,可以分享给我的话,用您的资源学习也可以。
博文是观看视频后,融入思考写成的。博文好,是老师讲得好。博文坏,是 给最苦 没认真。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: