CSS の問題が発生し、特定の DIV_html/css_WEB-ITnose でテキストが表示されません。

WBOY
リリース: 2016-06-21 09:35:22
オリジナル
1155 人が閲覧しました

div	{overflow:hidden;word-wrap:break-word;border:2px solid green;	 }	.total	{width:1000px;height:1000px;		}		.header	{height:20%;		 }	 	 .header_1	 {	 	 height:30%;		  }	  	  	  .header_1 div div	  {	  width:100%;	  height:50%;	  	   }	   	   .header_1 div div div	   	   { 	   width:50%;	   height:100%;	   text-align:center;	   	   	   }	  	  .header_1 div	  	  {	  	  width:19%;	  height:100%;	  float:left;	  	 	  	   }	  .header_2	  	  {	  height:30%;	  	   }	   	   .header_3	   	   { 	   	   height:30%;	   	   }	   	.header,.header_1,.header_2,.header_3	{ width:inherit;		}		.header_2 div,.header_3 div		{	width:32%;	height:100%;float:left;overflow:auto;			 }
ログイン後にコピー


<body>  <div class="total">      	  <div class="header">	    <div class="header_1">		   <div>		   		      <div>			  <div>			  			  I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 			  			  </div>			  <div>			  dddddddddddddddddddddddd 			  			  </div>  			  			  </div>		   	  <div>			  			  <div>			  			  I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 			  			  </div>			  <div>			  			  I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 			  			  			  </div>			  </div>		   		   		   </div>		   <div>I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 2</div>		   <div>I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 3</div>		   <div>I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 4</div>		   <div>I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 5</div>				</div>							  <div>		<div class="header_2">			 <div>I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 1</div>			 <div>I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 2</div>			 <div>I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 3</div>				</div>				<div class="header_3">			 <div>I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 1</div>			 <div>I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 2</div>			 <div>I have a div tag, and the text wraps well when you have spaces, everything is good, but when I do a long word or something, it will stick outside the div, is there anyway to fix this. I've looked at several things but they aren't all compatible with all browsers.Right now this is my css that the text is going into: 3</div>				</div>					 </div>			  </div>	 	 	 </div>      </div>        </body>
ログイン後にコピー


問題のスクリーンショット:


ディスカッションへの返信 (解決策)

設定した幅は 50% なので、半分だけが表示されます。 。
.header_1 div div
ここで高さ: 100% を削除します。 。わかります

ソース:php.cn
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
最新の問題
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート