Group Purchase Page Web development

Source: Internet
Author: User

Page Plate design page as a whole divided into two parts, respectively, with Box1,box2, to divide. The upper part is mainly: Group purchase website, toggle icon, content display. The website uses 1 <Body>2 <Divclass= "Big-box">3 <H2><ahref="#">Group Purchase Network</a></H2>4 <Divclass= "Box1">5 <imgsrc= "1.jpg"alt= "Music">6 <ul>7 <Li><ahref="#">4</a></Li>8 <Li><ahref="#">3</a></Li>9 <Li><ahref="#">2</a></Li>Ten <Li><ahref="#">1</a></Li> One </ul> A </Div> - <Divclass= "Box2"> - <P><ahref="#"><Strong>"69 Shop General"</Strong>Bridge Noodle voucher 1, no reservation required, universal</a></P> the <P><span>$19.9</span>Original Price: $39|6.6 fold<ahref="#"class= "Display"><spanclass= "B">to snap</span></a></P> - - </Div> - </Div> + - + </Body>

2.CSS style definition:

1 <style type= "Text/css" >2     *{3 margin:0;4 padding:0;5 Border:0;6 List-style:None;7}8 a{9 text-decoration:None;Ten Color:#666; One} A Strong{ - Color:Black; -} the span{ - font-size:30px; - Color:Orange; -} + . Big-box{ - width:445px; + Height:420px; A Border:1px solid #666666; at position:relative; - padding:10px 0 10px 12px; - margin:10px Auto; -} - . Box1{ - margin:5px 0px; in width:431px; - Height:300px; to position:relative; + box-sizing:Content-box; -} the ul{ * width:140px; $ Height:20px;Panax Notoginseng position:Absolute; -  Right:0px; the Bottom:10px; +} A ul Li{ the float: Right; + width:20px; - Height:20px; $ margin:0px 5px; $ background: White; - Border:2px Solid Green; -  the} - Li:last-child{Wuyi background:Yellow; the} - ul Li a{ Wu font-size:20px; - Font-weight:Bold; About Display:Block; $ text-align:Center; -} - . Box2{ -  A margin:20px 0px; + width:431px; the Height:300px; - position:relative; $ box-sizing:Content-box; the} the p a{ the Color:Black; the} - . Display{ in float: Right; the width:85px; the Height:30px; About background:Orange; the Border:1px solid #ff8b35; the Border-radius:4px; the margin:5px; +} - . b{ the font-size:18px;Bayi text-align:Center; the Display:Block; the Color: White; - margin:5px 0 0 0; -} the </style>

Above

Three. Practice doubts about the use of the float property: The float property causes the element to disengage from the [normal flow], when the child block floats, causing the parent block to collapse, at which point the space can be Overflow:hidden, I think the attribute overflow need to calculate the space height to determine where the hidden need to be clipped. So you can achieve clear float.

CSS gives me the feeling that I can not understand the logical structure, is still difficult to express. Of course there may be different writing to achieve the same goal, but the boulevard to Jane should be pursued with a more convenient and concise CSS selector and HTML tags.

Group Purchase Page Web development

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.