Html CSS-隐藏文本

Html CSS-隐藏文本,html,css,ruby-on-rails,Html,Css,Ruby On Rails,我想隐藏文本 <div id: "hideen_text" <a href="http://localhost:3000/photos/12.html"> <img src="https:0f25438da28b758ea0a65d69c188e505.jpg" width="2500" height="1685"> 1758345.j

我想隐藏文本

<div id: "hideen_text"
    <a href="http://localhost:3000/photos/12.html">
      <img src="https:0f25438da28b758ea0a65d69c188e505.jpg" width="2500" height="1685">
      1758345.jpg (I WANT TO HIDE THIS ONE)
    </a>
</div>

隐藏完整的div将是:

<div style="display: none">

仅在div中隐藏文本如下:

<div>
   <a href="http://localhost:3000/photos/12.html">
      <img src="https:0f25438da28b758ea0a65d69c188e505.jpg" width="2500" height="1685">
      <div style="display:none">1758345.jpg</div>
   </a>
</div>

在CSS中,使用:

#hideen_文本{ 显示:无; }