尊敬的社区成员,
我需要把所有的:
style="display:none"
来自所有行:
<p class="text" style="display:none">
到以下样式表:
style.css
关于 http://berdyanskaya56.ru/index.html .
值得注意的是如果我移动
"display:none"
到
.text
在
style.css
比描述性的标题不会分别改变为图片在页面上滑动(即,在网站屏幕的两侧使用箭头)。
最后的澄清:
我需要删除所有
style="display:none"
来自
<p class="text" style="display:none">
到
.text
在
style.css.
这将极大地帮助我清理网站上的代码。更改后 <p>
html 页面中的标签将如下所示:
<p class="text">
如果需要进一步说明,请在本文下方发表您的评论。
非常感谢您的提前帮助!
UPD:它还需要更改控制 display:none 在 JS 中的功能。如果您能帮我解决这个问题,请在下面发布它:-)!
最佳答案
/* style.css */
/* set all `p` elements having `class` `"text"`
`display` property to `none`
*/
p.text {
display:none;
}
关于javascript - 将样式属性迁移到单独的 .css 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33973775/