是否有可能具有跨越多行的属性值? [英] Is it possible to have attribute values that span multiple lines?

查看:105
本文介绍了是否有可能具有跨越多行的属性值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

e.g。

 < div class =big 
left
important>一些内容< / div>

有谁知道这是否会破坏事物/具有良好的浏览器支持?

解决方案

返回,选项卡等被视为空格,并且应该被视为相同。我已经看过并完成了格式化,类似于您发布的格式。有些人可能会阻止它。但我从来没有见过任何窒息的东西。



在创建我自己的网络机器人时,我不得不清理空白区域以便它们运行,因为最终机器人会遇到例如你的例子。

e.g.

<div class="big
            left
            important"> some content </div>

Does anyone know if this breaks things / has good browser support?

解决方案

Returns, tabs, etc are considered white space and should be treated the same. I've seen and done formatting similar to how you have posted it. Some may discourage it. But I've never seen anything choke on it.

When creating my own web robots, I've had to clean up the white space in order for them to function because ultimately the robot runs into examples such as yours.

这篇关于是否有可能具有跨越多行的属性值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆