Achieve page turning with pure CSS

Source: Internet
Author: User

The simple principle of CSS for page turning is that bookmarks are hidden. The Code is as follows:
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 strict // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml" XML: lang = "ZH" lang = "ZH">
<Head profile = "http://www.w3.org/2000/08/w3c-synd/#">
<Meta http-equiv = "content-language" content = "ZH-CN"/>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>

<Style>

DL {
Position: absolute;
Width: 240px;
Height: 170px;
Border: 10px solid # Eee;
}
Dd {
Margin: 0;
Width: 240px;
Height: 170px;
Overflow: hidden;
}
IMG {
Border: 1px solid black
}
Dt {
Position: absolute;
Right: 3px;
Top: 50px;
}
A {
Display: block;
Margin: 1px;
Width: 20px;
Height: 20px;
Text-align: center;
Font: 700 12px/20px "", sans-serif;
Color: # FFF;
Text-Decoration: none;
Background: #666;
Border: 1px solid # FFF;
Filter: alpha (opacity = 40 );
Opacity:. 4;
}
A: hover {
Background: #000
}
</Style>
</Head>
<Body>
<DL>
<DT> <a href = "# A" Title = ""> 1 </a> <a href = "# B" Title = ""> 2 </a> <a href = "# C" Title = ""> 3 </a> </DT>
<DD>



</DD>
</Dl>
</Body>
</Html>

Similarly, you can make other page flip effects.
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 strict // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml" XML: lang = "ZH" lang = "ZH">
<Head profile = "http://www.w3.org/2000/08/w3c-synd/#">
<Meta http-equiv = "content-language" content = "ZH-CN"/>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>

<Style>

DL {
Position: absolute;
Width: 240px;
Height: 170px;
Border: 10px solid # Eee;
}
Dd {
Margin: 0;
Width: 240px;
Height: 170px;
Overflow: hidden;
}
Dt {
Position: absolute;
Right: 1px;
}

Ul {
Margin: 0;
Padding: 0;
Width: 260px;
Height: 170px;
List-style: none;
Background: URL ("http://bbs.blueidea.com/attachments/2006/11/10/arrowb_kJrcZheJmiIF.gif") No-repeat 75% 20px;
Border: 1px solid # ccc
}
# B {
Background-position: 75% Center
}
# C {
Background-position: 75% 86%
}
Li {
Width: 205px;
Height: 27px;
Font: 12px/27px "", sans-serif;
White-space: nowrap;
Overflow: hidden;
}
Dt {
Display: block;
Margin: 1px;
Width: 30px;
Height: 56px;
Text-align: center;
Font: 700 12px/55px "", sans-serif;
Color: # FFF;
Text-Decoration: none;
Background: #666;
}
Dt a: hover {
Background: Orange
}
</Style>
<Head/>
<Body>
<DL>
<DT> <a href = "# A" Title = ""> News </a> <a href = "# B" Title = ""> entertainment </a> <a href = "# C" Title = ""> sports </a> </DT>
<DD>

 

<Ul id = "A">
<Li> · <a href = "" Title = ""> International News </a> </LI>
<Li> · <a href = "" Title = ""> International News </a> </LI>
<Li> · <a href = "" Title = ""> International News </a> </LI>
<Li> · <a href = "" Title = ""> International News </a> </LI>
<Li> · <a href = "" Title = ""> International News </a> </LI>
<Li> · <a href = "" Title = ""> International News </a> </LI>
</Ul>

<Ul id = "B">
<Li> · <a href = "" Title = ""> entertainment news and entertainment news </a> </LI>
<Li> · <a href = "" Title = ""> entertainment news and entertainment news </a> </LI>
<Li> · <a href = "" Title = ""> entertainment news and entertainment news </a> </LI>
<Li> · <a href = "" Title = ""> entertainment news and entertainment news </a> </LI>
<Li> · <a href = "" Title = ""> entertainment news and entertainment news </a> </LI>
<Li> · <a href = "" Title = ""> entertainment news and entertainment news </a> </LI>
</Ul>

<Ul id = "C">
<Li> · <a href = "" Title = ""> sports news, sports news, sports news </a> </LI>
<Li> · <a href = "" Title = ""> sports news, sports news, sports news </a> </LI>
<Li> · <a href = "" Title = ""> sports news, sports news, sports news </a> </LI>
<Li> · <a href = "" Title = ""> sports news, sports news, sports news </a> </LI>
<Li> · <a href = "" Title = ""> sports news, sports news, sports news </a> </LI>
<Li> · <a href = "" Title = ""> sports news, sports news, sports news </a> </LI>
</Ul>
</DD>
</Dl>
</Body>
</Html>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.