`
bobshute
  • 浏览: 280437 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

css some1

    博客分类:
  • jsp
阅读更多
1.
<html>
<head>
<style type="text/css">
h1.visible {visibility:visible}
h1.invisible {visibility:hidden}
</style>
</head>
<body>
<h1 class="visible">这是可见的标题</h1>
<h1 WORD-SPACING: 0px; FONT: 12px 'Courier New'; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0">e">这是不可见的标题
</h1>
</body>
</html>
2. <p>请把鼠标移动到单词上,可以看到鼠标指针发生变化:</p>
<span style="cursor:link"> Auto</span><br/>
3.<style type="text/css">
div {
background-color:#00FFFF;
width:150px;
height:150px;
overflow: scroll  滚动条//overflow: hidden 隐藏。
}
</style>

4.
<html>
<head>
<style type="text/css">
a.one:link {color: #ff0000}
a.one:visited {color: #0000ff}
a.one:hover {color: #ffcc00}

a.two:link {color: #ff0000}
a.two:visited {color: #0000ff}
a.two:hover {font-size: 150%}

a.three:link {color: #ff0000}
a.three:visited {color: #0000ff}
a.three:hover {background: #66ff66}

a.four:link {color: #ff0000}
a.four:visited {color: #0000ff}
a.four:hover {font-family: monospace}

a.five:link {color: #ff0000; text-decoration: none}
a.five:visited {color: #0000ff; text-decoration: none}
a.five:hover {text-decoration: underline}
</style>
</head>

<body>
<p>请把鼠标移动到这些链接上,以查看效果:</p>

<p><b><a class="one" href="/index.html" target="_blank">这个链接改变颜色</a></b></p>
<p><b><a class="two" href="/index.html" target="_blank">这个链接改变字体大小</a></b></p>
<p><b><a class="three" href="/index.html" target="_blank">这个链接改变背景颜色</a></b></p>
<p><b><a class="four" href="/index.html" target="_blank">这个链接改变字体系列</a></b></p>
<p><b><a class="five" href="/index.html" target="_blank">这个链接改变文本装饰</a></b></p>
</body>

</html>

5,
<html>
<head>
<style type="text/css">
a:first-child {
text-decoration:none
}
</style>
</head>
<body>
<p>:first-child 伪类向属于其他元素的第一个子元素的一个元素添加特殊样式。</p>
<p>访问 <a href="W3Schoolhttp://www.w3school.com.cn">W3School</a> 来学习 CSS!
  访问 <a href="W3Schoolhttp://www.w3school.com.cn">W3School</a> 来学习 HTML!</p>
</body>
</html>

6.<html>
<head>
<style type="text/css">
a:link {color: #FF0000}
a:visited {color: #00FF00}
a:hover {color: #FF00FF}
a:active {color: #0000FF}
</style>
</head>
<body>
<p><b><a href="/index.html" target="_blank">这是一个链接。</a></b></p>
<p><b>注释:</b>在 CSS 定义中,a:hover 必须位于 a:link 和 a:visited 之后,这样才能生效!</p>
<p><b>注释:</b>在 CSS 定义中,a:active 必须位于 a:hover 之后,这样才能生效!</p>
</body>
</html>

7.<html>
<head>
<style type="text/css">
p:first-letter
{
color: #ff0000;
font-size:xx-large
}
</style>
</head>
<body>
<p>
You can use the :first-letter pseudo-element to add a special effect to the first letter of a text!
</p>
</body>
</html>
http://www.w3school.com.cn/tiy/t.asp?f=csse_firstletter
8.<html>
<head>
<style type="text/css">
p:first-line
{
color: #ff0000;
font-variant: small-caps
}
</style>
</head>
<body>
<p>
You can use the :first-line pseudo-element to add a special effect to the first line of a text!
</p>
</body>
</html>
http://www.w3school.com.cn/tiy/t.asp?f=csse_firstline <!-- v:3.1-->
分享到:
评论

相关推荐

    Getting StartED with CSS

    but still haven’t quite “got it.” If you already know some CSS, I strongly urge you not to skip the early chapters, because I try to steer you away from overreliance on CSS classes and other bad ...

    Beginning CSS3 (pdf)

    the language that in the hands of a skilled designer turns the ugly duckling of unadorned HTML into the gracious swan of a sophisticated web page. Some web designers will tell you dismissively that ...

    CSS in Depth-Manning(2018).pdf

    Some of the topics could warrant entire books on their own: animation, typogra- phy, even flexbox and grid layout. My goal is to flesh out your knowledge, help you bolster your weak spots, and give ...

    HTML5 and CSS3 Transition, Transformation, and Animation

    You will then quickly progress to intermediate concepts such as form elements and some exciting features with JavaScript APIs. The code samples provided in this book will give you a solid base by ...

    CSS in Depth.

    It was somewhere around that time I discovered the wonderful View Source but- ton and realized all the secrets of a web page were there for me to decipher in plain text. I taught myself HTML and CSS ...

    The Advanced CSS Collection

    In this collection of books, we’ll be exploring some of the amazing things that developers can do with CSS today; tasks that in the past might only have been achievable with some pretty complex ...

    Responsive Web Design with HTML5 and CSS3(PACKT,2ed,2015)

    Desktop-only websites just aren’t ...Learn how to use the latest features of CSS including custom fonts, nth-child selectors (and some CSS4 selectors), CSS custom properties (variables), and CSS calc

    css guida(basic

    This second edition of the book covers CSS2 and CSS2 1 the latter of which is in many ways a clarification of the first While some CSS3 modules have reached Candidate Recommendation status as of this ...

    CSSTidy:CSSTidy是CSS缩小器

    CSSTidy CSSTidy是CSS缩小器 css_optimiser.php是Web界面 class.csstidy.php是解析器 ...// Set some options : $csstidy-&gt;set_cfg('optimise_shorthands', 2); $csstidy-&gt;set_cfg('template', 'high'); // Parse the

    Positioning.in.CSS.Layout.Enhancements.for.the.Web.149193

    The Grid Layout spec will soon change your approach to website design, but there will still be plenty of uses for CSS positioning tricks. Whether you want to create sidebars that...Chapter 1. Positioning

    css 3d效果

    CSS 3D engine is used for creating some simple 3D scene with touch interactions. Animation of 100 objects plays very smoothly on mobile devices.

    blocks.css:使用块some在页面上添加一些尺寸

    blocks.css :hot_beverage: 用块向页面添加一些尺寸 :rocket: 您可以在查看示例并开始使用blocks.css 。 文档中的blocks.css UI如下所示。 首先将blocks.css样式表添加到页面的&lt;head&gt; : &lt; link rel =...

    postcss-d-ts:PostCSS插件可在导入的样式表中生成所有使用过CSS类和ID的.d.ts

    插件可在导入的样式表中生成所有使用过CSS类和ID的 目标 提供JS和CSS之间的。 安装与设定 ... /* some.css or some.module.css */ . class1 { ... } . class2 { ... } 从模板生成的声明(即默认 ): de

    postcss-prefix-selector:使用选择器为所有CSS规则添加前缀

    postcss前缀选择器 使用自定义命名空间.a =&gt; .prefix .a每个CSS选择器添加前缀。... prefix : '.some-selector' , exclude : [ '.c' ] , // Optional transform callback for case-by-case overrid

    YuNetsurf v3.0.0 for D6-XE10 HTML5 CSS 解析

    Handle most CSS2 as well as some CSS3 properties. Selector engines readily provided for Simple DOM tree. LibXml2 tree. Flexible selection API to apply CSS to custom DOM implementations. Fast, ...

    unused-css-parser:一个检查器,可在文件中查找未使用CSS类并显示它们

    $ npm start -- --cssfile=/someProject/application.css --directory=/someProject/ &gt; unused-css-parser@1.0.0 start /workspace/unused-css-parser &gt; node index.js "--cssfile=/someProject/application.css --...

    ASP.NET MVC with Entity Framework and CSS

    ASP.NET MVC with Entity Framework and CSS by Lee Naylor 2016 | ISBN: 1484221362 | ... The book assumes some programming knowledge such as object-oriented programming concepts and a basic knowledge of C#.

    some.css

    some.css

Global site tag (gtag.js) - Google Analytics