Heim  >  Artikel  >  Web-Frontend  >  iframe双滚动条 解决方式 CSS3 overflow-y 属性_html/css_WEB-ITnose

iframe双滚动条 解决方式 CSS3 overflow-y 属性_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:54:521744Durchsuche

??

裁剪 div 元素中内容的左/右边缘 - 如果溢出元素的内容区域的话:

div{overflow-y:hidden;}
<style> div{width:110px;height:110px;border:thin solid black;overflow-x:hidden;overflow-y:hidden;}</style>
<div><p style="width:140px">这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。这是一个段落。</p></div>
<p>Overflow-x 是否对内容的左/右边缘进行裁剪。</p><p>Overflow-y 是否对内容的上/下边缘进行裁剪。</p>
 
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn