CSS Learning (18th)-scroll bars, drag elements, and outlines

Source: Internet
Author: User

CSS Learning (18th)-scroll bars, drag elements, and outlines
I. theory:
1. overflow-x/overflow-y
A. Default Value of visible. No scroll bar is added.
B. Add a scroll bar in auto
C. When the hidden content overflows the container, all content will be hidden and no scroll bar will be displayed.
D. scroll displays the scroll bar no matter whether overflow exists.
E. no-display: no elements are displayed when the content overflows the container.
F. no-content the content is not displayed when the content overflows the container
2. resize
A. none users cannot drag elements to modify the size.
B. both users can drag an element and modify the width and height of the element at the same time.
C. horizontal users can drag elements, but they can only change the width.
D. vertical users can drag elements, but only change the height.
E. inherit inherits the resize attribute value of the parent element.
3. outline
A. outline color, style, width, and Offset Value
4. Comparison of outline and border lines
A. border is part of the box model. The outline line does not damage the webpage layout.
B. The external contour lines created by outline are the same on each side of the element.
C. The element created by border can be set on one side. The outer contour line created by outline is closed.
D. border can only set the border of an element and can only expand outward. outline can create closed outlines for the element.

Ii. Practice:

1.

 

   Get up to eight dishes. 2. 

 

    

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.