How does CSS hide excess content?
How does CSS hide excess content:
Sometimes the content in the container will go beyond the container's boundary, which is very difficult to see. Therefore, you need to hide the excess content. The following describes how to implement this effect.
The code example is as follows:
<! DOCTYPE html>
If the content in the above Code exceeds the boundary, you can set the overflow attribute value of the container to hidden.
The above settings hide all the content that exceeds the limit. You can also hide the content that exceeds the limit either horizontally or vertically. The code example is as follows:
<! DOCTYPE html>
In the above Code, the Child div is beyond the boundary either vertically or horizontally. If you only want to hide content that exceeds the horizontal limit, you can use the following code:
<! DOCTYPE html>
Original address: http://www.51texiao.cn/div_cssjiaocheng/2015/0507/905.html
The most original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 4648.