CSS的display、hover、overflow、&copy(著作權符號)、borer-radius(邊框圓角)

來源:互聯網
上載者:User

標籤:

一、display: none 隱藏 block顯示

    visibility:hidden隱藏 visible顯示

display:none和visibility:hidden這兩個屬性對應的值都是隱藏對像,但是它們隱藏對像有點區別。

display和visibility的區別:display隱藏相當於這個元素沒有了,visibility的隱藏該元素所佔的位置還在,只是內容隱藏了。

二、hover:不是一個樣式,用元素的ID或者CLASS之類後面跟冒號hover,代表滑鼠放到此元素上顯示哪些樣式

例如:

 三、overflow

可用值

 

值 描述
visible The content is not clipped. It renders outside the element
內容不會被省掉。會顯示在元素的外面
hidden The content is clipped, but the browser does not display a scroll-bar to see the rest of the content 
內容會被省掉,但瀏覽器不會顯示捲軸以用來查看剩餘的內容(超出範圍隱藏)
scroll The content is clipped, but the browser displays a scroll-bar to see the rest of the content
內容被省掉,但瀏覽器會顯示捲軸以用來查看剩餘的內容
auto If the content is clipped, the browser should display a scroll-bar to see the rest of the content
如果內容被省掉了,瀏覽器才會顯示出捲軸

四、borer-radius(邊框圓角)

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>無標題文檔</title><style type="text/css">#sub1{       width:200px;    height:200px;    border-radius:15px;    background-color:#093}</style></head><body><div id="parent">    <div id="sub1"></div></div></body>

CSS的display、hover、overflow、&copy(著作權符號)、borer-radius(邊框圓角)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.