当数据使用内联CSS空白时,隐藏跨度
我的名字:[$ name]
如何使“ 我的名字:”不可见,如果“ [$ name] ”是空白的?我正在使用内联CSS,因为此表格将发送到HTML电子邮件。
my name: [$name]
How to make the “my name:” not visible if the "[$name]" is blank? I’m using inline css because this form will be sent to HTML email.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如评论中所述,如果您只想使用CSS,则取决于HTML结构。不过是可能的。
As mentioned in the comments, if you want to use CSS only, it depends on the HTML structure. It is possible though.