Display:block renders the child object as a block object. Many inline style effects need to be used for display.
<textarea id="runcode94414"><style type= "Text/css" > #photo a img{border:3px solid #FF6600;} #photo a:hover {display:block;} /** If this sentence is not added, the style of the inline object img does not display **/#photo a:hover img{border:2px solid Blue;} </style></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
The size of the position content determines the size of the object based on the layout size.
<textarea id="runcode86128"><p><style type= "Text/css" > #text {position:relative;}/** if not, the inline object is not displayed. If block, the dashed line is too long as a block-level element. Posigion, the length is determined by the content of text. **/#text span{width:200px; height:20px;border-bottom:1px dashed #000000;} </style></P><P> <span> Example text underline style </span></P></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
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